- Practice tables: 20-min session 54/54 turns at the server, control session 28 turns, 0 timeouts; stage: 3 tables, two rounds each, clean teardown. - Never let the clock run: an engine abstention becomes check or fold (nie_verstreichen). - Mittler join in a fixed order (kill the duplicate, then announce), a mittler ends with its game, the laufwache opens no tables, stop waits for the runner to stand up. - Focus: no lobby connections from HUD, probes or layout; "Focus Window on Turn" off. - Tables: disconnected or sitting-out opponents do not count; a table without channel is closed and avoided after 45 s; the join event keeps the writer's pid (strict invariants). - Geldwache: same room list as the runner, the table's own report, stand up before closing. - Engine: the small blind completes the top 65 % against limpers (price per fair share); the calling range of a bet is as wide as the villain calls - value bets into stations. - Cockpit: the source tree never comes from SHELL; one operating set for laufwache and Cockpit (sicht/start.py --client, ServerStart). - Project lives in ~/Projects/pokerfreak (kern was a detour).
56 lines
2.0 KiB
Swift
56 lines
2.0 KiB
Swift
import Foundation
|
|
import CockpitKern
|
|
import SwiftUI
|
|
|
|
/// Die Alarme des Kontos in der Kopfzeile: Verdacht, Sperre, laufende Ruhezeit. Alles andere steht
|
|
/// nur in der `KontoKarte`. Die Zeilen kommen fertig vom Server; hier wird nur gefaerbt und umgebrochen.
|
|
struct KontoLeiste: View {
|
|
var alarme: [String]
|
|
|
|
var body: some View {
|
|
FlussLayout(abstand: 6) {
|
|
ForEach(alarme, id: \.self) { zeile in
|
|
Text(zeile)
|
|
.font(.caption2)
|
|
.padding(.horizontal, 6).padding(.vertical, 2)
|
|
.foregroundStyle(farbe(zeile))
|
|
.background(farbe(zeile).opacity(0.12), in: Capsule())
|
|
.help(zeile)
|
|
}
|
|
}
|
|
}
|
|
|
|
private func farbe(_ zeile: String) -> Color {
|
|
zeile.contains("(JETZT)") ? .orange : .red
|
|
}
|
|
}
|
|
|
|
/// Der volle Kontostatus als Karte - fuer die Uebersicht, wo Platz ist.
|
|
struct KontoKarte: View {
|
|
var konto: Konto
|
|
|
|
var body: some View {
|
|
VStack(alignment: .leading, spacing: 8) {
|
|
HStack(spacing: 6) {
|
|
Label("Konto und Raum", systemImage: "shield.lefthalf.filled")
|
|
.font(.subheadline.weight(.semibold))
|
|
if konto.warn { Abzeichen(text: "Achtung", farbe: .red) }
|
|
Spacer(minLength: 0)
|
|
}
|
|
if konto.felder.isEmpty {
|
|
Text("keine Kennzeichen im Log").font(.caption).foregroundStyle(.secondary)
|
|
}
|
|
ForEach(konto.felder, id: \.self) { zeile in
|
|
HStack(alignment: .firstTextBaseline, spacing: 6) {
|
|
Statuspunkt(ton: .grau, groesse: 6)
|
|
Text(zeile).font(.caption).fixedSize(horizontal: false, vertical: true)
|
|
}
|
|
}
|
|
if konto.schwarzJetzt {
|
|
Text("Ruhezeit laeuft: der Laeufer oeffnet jetzt keinen neuen Tisch.")
|
|
.font(.caption2).foregroundStyle(.orange)
|
|
}
|
|
}
|
|
}
|
|
}
|