From 62017c86392b046d746fb4fafef6742840477c5f Mon Sep 17 00:00:00 2001 From: historia <[not public]> Date: Fri, 2 Oct 2026 02:16:44 -0400 Subject: feat: polish 'list' output, drop sitout command --- internal/game/pai_gow_test.go | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) (limited to 'internal/game/pai_gow_test.go') 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 fortune", "bet ", "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 ") { + 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") -- cgit v1.2.3