From 6d9908b29c8187196d23b126b1165c7e0bd0fc76 Mon Sep 17 00:00:00 2001 From: historia <[not public]> Date: Thu, 1 Oct 2026 19:30:38 -0400 Subject: fix: casino pai gow sorting, universal unbet, table/rules split, remove solo timers --- internal/casino/command_hints_test.go | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'internal/casino/command_hints_test.go') diff --git a/internal/casino/command_hints_test.go b/internal/casino/command_hints_test.go index 1de70bd..353d292 100644 --- a/internal/casino/command_hints_test.go +++ b/internal/casino/command_hints_test.go @@ -31,7 +31,7 @@ func TestCrapsHintsFollowPlayerState(t *testing.T) { if !hintBet(commands) || !hintHas(commands, "stop") { t.Fatal(v, "missing idle actions", commands) } - for _, c := range []string{"roll", "autoroll", "unbet / unbet all"} { + for _, c := range []string{"roll", "autoroll", "unbet"} { if hintHas(commands, c) { t.Fatal(v, "idle", c) } @@ -44,7 +44,7 @@ func TestCrapsHintsFollowPlayerState(t *testing.T) { if v == "simplified" { // Simplified craps rolls by itself: no manual shooting actions // while the pass contract is live. - if hintHas(commands, "roll") || hintHas(commands, "autoroll") || hintHas(commands, "unbet / unbet all") || hintBet(commands) { + if hintHas(commands, "roll") || hintHas(commands, "autoroll") || hintHas(commands, "unbet") || hintBet(commands) { t.Fatal(v, "manual actions", commands) } if !hintHas(commands, "stop") { @@ -52,7 +52,7 @@ func TestCrapsHintsFollowPlayerState(t *testing.T) { } continue } - if !hintHas(commands, "roll") || !hintHas(commands, "autoroll") || hintHas(commands, "unbet / unbet all") { + if !hintHas(commands, "roll") || !hintHas(commands, "autoroll") || hintHas(commands, "unbet") { t.Fatal(v, "contract actions", commands) } if !tb.Config.Craps.allows("buy") && hintBet(commands) { @@ -80,19 +80,19 @@ func TestCrapsHintsOnlyOfferRemovableWagers(t *testing.T) { w := &testWallet{chips: 1000} tb.bet("a", "pass", 10, w) tb.resolveRoll(2, 2) - if hintHas(tb.commands("a"), "unbet / unbet all") { + if hintHas(tb.commands("a"), "unbet") { t.Fatal("contract removable") } tb.bet("a", "odds pass", 10, w) - if !hintHas(tb.commands("a"), "unbet / unbet all") { + if !hintHas(tb.commands("a"), "unbet") { t.Fatal("odds not removable") } - tb.action("a", "unbet odds pass") - if hintHas(tb.commands("a"), "unbet / unbet all") { + tb.action("a", "unbet") + if hintHas(tb.commands("a"), "unbet") { t.Fatal("removed odds still advertised") } tb.bet("a", "place 6", 12, w) - if !hintHas(tb.commands("a"), "unbet / unbet all") { + if !hintHas(tb.commands("a"), "unbet") { t.Fatal("place removal missing") } } -- cgit v1.2.3