aboutsummaryrefslogtreecommitdiff
path: root/internal/casino/command_hints_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/casino/command_hints_test.go')
-rw-r--r--internal/casino/command_hints_test.go18
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) {