aboutsummaryrefslogtreecommitdiff
path: root/internal/casino/video_poker.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/casino/video_poker.go')
-rw-r--r--internal/casino/video_poker.go13
1 files changed, 13 insertions, 0 deletions
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()