diff options
| author | historia <[not public]> | 2026-10-01 19:30:38 -0400 |
|---|---|---|
| committer | historia <[not public]> | 2026-10-01 19:30:38 -0400 |
| commit | 6d9908b29c8187196d23b126b1165c7e0bd0fc76 (patch) | |
| tree | ddbc02357ed92646b801687b90b1a06c71a15d71 /internal/casino/command_hints_test.go | |
| parent | 8a94f21bd47c0a00bc415395232dba22fa958837 (diff) | |
| download | thehouseoficarus-6d9908b29c8187196d23b126b1165c7e0bd0fc76.tar.gz | |
fix: casino pai gow sorting, universal unbet, table/rules split, remove solo timers
Diffstat (limited to 'internal/casino/command_hints_test.go')
| -rw-r--r-- | internal/casino/command_hints_test.go | 16 |
1 files changed, 8 insertions, 8 deletions
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 <target> / 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 <target> / 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 <target> / 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 <target> / 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 <target> / 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 <target> / 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 <target> / unbet all") { + if !hintHas(tb.commands("a"), "unbet") { t.Fatal("place removal missing") } } |
