diff options
| author | historia <[not public]> | 2026-10-03 00:51:41 -0400 |
|---|---|---|
| committer | historia <[not public]> | 2026-10-03 00:51:41 -0400 |
| commit | 82e571d227feeafd0af4011e701ce26b99c5e3d9 (patch) | |
| tree | ab4d56ddf94c3bf3b42fff5dfc2ff9a339f09113 /internal/casino/table.go | |
| parent | cac16d1725c46c82a2e62b84c93f7090b2ce0746 (diff) | |
| download | thehouseoficarus-82e571d227feeafd0af4011e701ce26b99c5e3d9.tar.gz | |
fix: craps felt and wager description cleanup
Diffstat (limited to 'internal/casino/table.go')
| -rw-r--r-- | internal/casino/table.go | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/internal/casino/table.go b/internal/casino/table.go index 08c18bf..d93d91e 100644 --- a/internal/casino/table.go +++ b/internal/casino/table.go @@ -142,6 +142,16 @@ func (t *Table) Board(name string) Snapshot { } func (t *Table) Overview() string { return t.game.overview() } +// Busy reports whether a table action for the named player is still in +// flight (for craps, the dice are in the air). The command loop skips the +// prompt while busy so a pending result is not split by a stray prompt. +func (t *Table) Busy(name string) bool { + if b, ok := t.game.(interface{ busy(name string) bool }); ok { + return b.busy(name) + } + return false +} + // Seats lists the seated players in seat order for the look command. func (t *Table) Seats() []string { return t.game.seats() } |
