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/game/craps_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/game/craps_test.go')
| -rw-r--r-- | internal/game/craps_test.go | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/internal/game/craps_test.go b/internal/game/craps_test.go index 569b4db..fd2e4b9 100644 --- a/internal/game/craps_test.go +++ b/internal/game/craps_test.go @@ -5,12 +5,14 @@ import ( "testing" "thehouseoficarus/internal/casino" "thehouseoficarus/internal/color" + "thehouseoficarus/internal/combat" "thehouseoficarus/internal/net" "thehouseoficarus/internal/player" + "thehouseoficarus/internal/world" ) func TestCrapsCommandsAndRendering(t *testing.T) { - g := &Game{Casino: casino.NewManager(1)} + g := &Game{Casino: casino.NewManager(1), Combat: combat.NewTracker(), Deps: Deps{World: world.New(t.TempDir())}} cfg := casino.TableConfig{ID: "craps", Game: casino.GameCraps} g.Casino.Join(1, cfg, "alice") conn := &casinoTestConn{} @@ -24,8 +26,8 @@ func TestCrapsCommandsAndRendering(t *testing.T) { } } conn.data = nil - g.executeTableStatus(sess, []string{"rules"}, "table rules") - if !strings.Contains(string(conn.data), "Bank Craps") || !strings.Contains(string(conn.data), "PASS LINE") { + g.executeTableStatus(sess, nil, "table") + if !strings.Contains(string(conn.data), "PASS LINE") { t.Fatal(string(conn.data)) } for _, cmd := range []string{"roll", "autoroll", "unbet"} { |
