From c94728c929045f7c1bdf0166df152d944e5f99bc Mon Sep 17 00:00:00 2001 From: historia <[not public]> Date: Thu, 1 Oct 2026 15:47:17 -0400 Subject: feat: better casino game look output, more concise table instructions --- internal/casino/video_poker.go | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'internal/casino/video_poker.go') diff --git a/internal/casino/video_poker.go b/internal/casino/video_poker.go index 8c9f66c..e5012f5 100644 --- a/internal/casino/video_poker.go +++ b/internal/casino/video_poker.go @@ -109,6 +109,25 @@ func (t *videoPokerTable) overview() string { func (t *videoPokerTable) overviewLocked() string { return t.settings.CabinetName() + " machine" } +func (t *videoPokerTable) seats() []string { + t.mu.Lock() + defer t.mu.Unlock() + names := make([]string, 0, len(t.players)) + for name := range t.players { + names = append(names, name) + } + return names +} +func (t *videoPokerTable) state() string { + t.mu.Lock() + defer t.mu.Unlock() + for _, p := range t.players { + if p.active { + return "playing" + } + } + return "waiting" +} func (t *videoPokerTable) wagers(string) []WagerRow { return nil } func (t *videoPokerTable) hints(name string) []MenuCommand { t.mu.Lock() -- cgit v1.2.3