From 62017c86392b046d746fb4fafef6742840477c5f Mon Sep 17 00:00:00 2001 From: historia <[not public]> Date: Fri, 2 Oct 2026 02:16:44 -0400 Subject: feat: polish 'list' output, drop sitout command --- internal/casino/video_poker.go | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'internal/casino/video_poker.go') diff --git a/internal/casino/video_poker.go b/internal/casino/video_poker.go index a22d3c8..7e79b58 100644 --- a/internal/casino/video_poker.go +++ b/internal/casino/video_poker.go @@ -217,6 +217,19 @@ func (t *videoPokerTable) statusLocked(name string, showTable bool) []Event { return []Event{e} } +// board is the table-only view for the table command: the paytable and game +// state without the balance line or command menu. +func (t *videoPokerTable) board(name string) Snapshot { + t.mu.Lock() + defer t.mu.Unlock() + for _, e := range t.statusLocked(name, true) { + if e.Snapshot != nil { + return e.Snapshot + } + } + return nil +} + func (t *videoPokerTable) join(name string) []Event { t.mu.Lock() defer t.mu.Unlock() -- cgit v1.2.3