diff options
| author | historia <[not public]> | 2026-10-03 01:46:58 -0400 |
|---|---|---|
| committer | historia <[not public]> | 2026-10-03 01:46:58 -0400 |
| commit | efccf58741ae43d9e891c6b743b146982b344ccf (patch) | |
| tree | 505a068497c5531b91ac72da32db14145737e982 /internal/casino/command_hints_test.go | |
| parent | 0ec8f3692960a064616e630c914058298b22897b (diff) | |
| download | thehouseoficarus-efccf58741ae43d9e891c6b743b146982b344ccf.tar.gz | |
fix: don't show roulette table after each bet
Diffstat (limited to 'internal/casino/command_hints_test.go')
| -rw-r--r-- | internal/casino/command_hints_test.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/internal/casino/command_hints_test.go b/internal/casino/command_hints_test.go index bd15883..b391526 100644 --- a/internal/casino/command_hints_test.go +++ b/internal/casino/command_hints_test.go @@ -119,23 +119,23 @@ func TestOtherCasinoHintsRespectCommitment(t *testing.T) { r := newRouletteTable(1, TableConfig{ID: "r", Game: GameRoulette, BettingTicks: 10}, newTestRand()) r.join("a") r.join("b") - if hintHas(r.menuEvent("a").Menu.Commands, "bet / rebet") { + if hintHas(r.menuEvent("a", true).Menu.Commands, "bet / rebet") { t.Fatal("roulette no wager to repeat") } r.bet("a", "red", 10, &testWallet{chips: 1000}) - if hintBet(r.menuEvent("a").Menu.Commands) { + if hintBet(r.menuEvent("a", true).Menu.Commands) { t.Fatal("roulette duplicate bet advertised") } - if !hintBet(r.menuEvent("b").Menu.Commands) { + if !hintBet(r.menuEvent("b", true).Menu.Commands) { t.Fatal("roulette missing eligible bet") } r.phase = phasePlaying - if hintBet(r.menuEvent("b").Menu.Commands) { + if hintBet(r.menuEvent("b", true).Menu.Commands) { t.Fatal("roulette spinning bets advertised") } r.phase = phaseWaiting r.players.get("a").HasBet = false - if !hintHas(r.menuEvent("a").Menu.Commands, "bet / rebet") { + if !hintHas(r.menuEvent("a", true).Menu.Commands, "bet / rebet") { t.Fatal("roulette repeat missing") } } |
