diff options
| author | historia <[not public]> | 2026-10-01 15:47:17 -0400 |
|---|---|---|
| committer | historia <[not public]> | 2026-10-01 15:47:17 -0400 |
| commit | c94728c929045f7c1bdf0166df152d944e5f99bc (patch) | |
| tree | 3d677caf166da36cd12ae200cc4c5d7a789d5c8f /internal/casino/video_poker.go | |
| parent | 1082f3336085c15992ca83d5553c0ba52208d70a (diff) | |
| download | thehouseoficarus-c94728c929045f7c1bdf0166df152d944e5f99bc.tar.gz | |
feat: better casino game look output, more concise table instructions
Diffstat (limited to 'internal/casino/video_poker.go')
| -rw-r--r-- | internal/casino/video_poker.go | 19 |
1 files changed, 19 insertions, 0 deletions
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() |
