diff options
| author | historia <[not public]> | 2026-09-30 17:49:28 -0400 |
|---|---|---|
| committer | historia <[not public]> | 2026-09-30 17:49:28 -0400 |
| commit | 2317022c16b520dd5272facfd5092a4c58cac44b (patch) | |
| tree | cc7501ecfb106e462457b2ba3489e7ce14d64c5a /internal/casino/command_hints_test.go | |
| parent | 39ad552cb5f48c288e1d7a62e80ceb180882eae0 (diff) | |
| download | thehouseoficarus-2317022c16b520dd5272facfd5092a4c58cac44b.tar.gz | |
fix: simplified simplified craps, removed unnecessary commands and instructions
Diffstat (limited to 'internal/casino/command_hints_test.go')
| -rw-r--r-- | internal/casino/command_hints_test.go | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/internal/casino/command_hints_test.go b/internal/casino/command_hints_test.go index c570e15..1de70bd 100644 --- a/internal/casino/command_hints_test.go +++ b/internal/casino/command_hints_test.go @@ -36,8 +36,22 @@ func TestCrapsHintsFollowPlayerState(t *testing.T) { t.Fatal(v, "idle", c) } } + if watch := tb.commands("watcher"); len(watch) != 1 || watch[0].Command != "table" { + t.Fatal(v, "spectator actions", watch) + } tb.bet("a", "pass", 10, w) commands = tb.commands("a") + 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) { + t.Fatal(v, "manual actions", commands) + } + if !hintHas(commands, "stop") { + t.Fatal(v, "missing stop", commands) + } + continue + } if !hintHas(commands, "roll") || !hintHas(commands, "autoroll") || hintHas(commands, "unbet <target> / unbet all") { t.Fatal(v, "contract actions", commands) } @@ -58,10 +72,6 @@ func TestCrapsHintsFollowPlayerState(t *testing.T) { if !hintHas(tb.commands("a"), "roll") || hintHas(tb.commands("b"), "roll") { t.Fatal(v, "wrong shooter hints") } - watch := tb.commands("watcher") - if len(watch) != 1 || watch[0].Command != "table" { - t.Fatal(v, "spectator actions", watch) - } } } func TestCrapsHintsOnlyOfferRemovableWagers(t *testing.T) { |
