aboutsummaryrefslogtreecommitdiff
path: root/internal/casino/craps.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/casino/craps.go')
-rw-r--r--internal/casino/craps.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/internal/casino/craps.go b/internal/casino/craps.go
index 69a38ed..8322192 100644
--- a/internal/casino/craps.go
+++ b/internal/casino/craps.go
@@ -102,6 +102,13 @@ func (t *crapsTable) view() *CrapsSnapshot {
}
return s
}
+
+// board is the table-only view for the table command.
+func (t *crapsTable) board(_ string) Snapshot {
+ t.mu.Lock()
+ defer t.mu.Unlock()
+ return t.view()
+}
func (t *crapsTable) menu(name string) Event {
e := t.betMenuEvent(name, t.commands(name))
e.Snapshot = t.view()