From 9fb1f9010526100e12dd1ab1b0ca98401bb6ed75 Mon Sep 17 00:00:00 2001 From: historia <[not public]> Date: Sat, 10 Oct 2026 04:08:09 -0400 Subject: feat: add casino game: crazy time --- internal/casino/table_ux.go | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'internal/casino/table_ux.go') diff --git a/internal/casino/table_ux.go b/internal/casino/table_ux.go index d23c8a2..5613a81 100644 --- a/internal/casino/table_ux.go +++ b/internal/casino/table_ux.go @@ -14,6 +14,13 @@ type WagerRow struct { Win string } +// rebetWager is one remembered wager a multi-bet game can replay on a bare +// bet/rebet. +type rebetWager struct { + spot string + amount int +} + const ( hintCommandRules = "rules" hintCommandList = "list" @@ -36,6 +43,18 @@ func withTableHints(commands []MenuCommand, wagerRows []WagerRow) []MenuCommand return commands } +// stripMenuBalance clears the wallet display from a bet response's menus, so +// placing a wager never prints the balance. Explicit status/look and later +// settlements keep their balance. +func stripMenuBalance(events []Event) []Event { + for i := range events { + if events[i].Menu != nil { + events[i].Menu.ShowBalance = false + } + } + return events +} + // RulesText is the shared rules view for table commands and room fixtures. func (c TableConfig) RulesText() string { return rulesTextOnTable(c) } -- cgit v1.2.3