aboutsummaryrefslogtreecommitdiff
path: root/internal/game/pai_gow_test.go
diff options
context:
space:
mode:
authorhistoria <[not public]>2026-10-02 02:16:44 -0400
committerhistoria <[not public]>2026-10-02 02:16:44 -0400
commit62017c86392b046d746fb4fafef6742840477c5f (patch)
treeeab569e29e858ff79b8ce06caa9bacb28bc9ee81 /internal/game/pai_gow_test.go
parentd3a305d1d7962f82af2397760cf8008758bddd1d (diff)
downloadthehouseoficarus-62017c86392b046d746fb4fafef6742840477c5f.tar.gz
feat: polish 'list' output, drop sitout command
Diffstat (limited to 'internal/game/pai_gow_test.go')
-rw-r--r--internal/game/pai_gow_test.go16
1 files changed, 11 insertions, 5 deletions
diff --git a/internal/game/pai_gow_test.go b/internal/game/pai_gow_test.go
index f0440b7..5ba367e 100644
--- a/internal/game/pai_gow_test.go
+++ b/internal/game/pai_gow_test.go
@@ -300,17 +300,23 @@ func TestPaiGowContextHintsFollowState(t *testing.T) {
g, sess, conn := casinoCrapsGame(t, "name: Pai Gow\ncasino_tables:\n - id: fortune\n game: paigow\n min_bet: 5\n max_bet: 1000\n pai_gow:\n envy: true\n")
g.executePlay(sess, []string{"pai"}, "play pai")
- // A fresh bettor is told about the side bet and the main wager, plus the
- // shared tail.
- conn.data = nil
- g.executeTableStatus(sess, nil, "table")
+ // The join menu carries the context hints: the side bet, the main wager,
+ // and the shared tail.
text := stripANSI(string(conn.data))
for _, want := range []string{"bet <amount> fortune", "bet <amount>", "table", "rules", "stop"} {
if !strings.Contains(text, want) {
- t.Fatalf("missing %q at a fresh table: %s", want, text)
+ t.Fatalf("missing %q in the join menu: %s", want, text)
}
}
+ // The table command shows only the felt, without the hint menu.
+ conn.data = nil
+ g.executeTableStatus(sess, nil, "table")
+ text = stripANSI(string(conn.data))
+ if !strings.Contains(text, "PAI GOW POKER") || strings.Contains(text, "bet <amount>") {
+ t.Fatalf("table should be the felt alone: %s", text)
+ }
+
// A lone main wager deals immediately; the live menu moves to setting.
conn.data = nil
g.executeBet(sess, []string{"20"}, "bet 20")