diff options
| author | historia <[not public]> | 2026-10-01 04:26:20 -0400 |
|---|---|---|
| committer | historia <[not public]> | 2026-10-01 04:26:20 -0400 |
| commit | 0ba388bbe229dd1ccfcb0831d21a5542ae0935f1 (patch) | |
| tree | c5686cf404e3dc5001d2c9b2792749ae7a3c9801 /internal/game/vesta_world_test.go | |
| parent | e3ff06fc79682673194c8913f0feb9e90920e7d0 (diff) | |
| download | thehouseoficarus-0ba388bbe229dd1ccfcb0831d21a5542ae0935f1.tar.gz | |
feat: video poker machines added to casino
Diffstat (limited to 'internal/game/vesta_world_test.go')
| -rw-r--r-- | internal/game/vesta_world_test.go | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/internal/game/vesta_world_test.go b/internal/game/vesta_world_test.go index 1a26bf6..b719e24 100644 --- a/internal/game/vesta_world_test.go +++ b/internal/game/vesta_world_test.go @@ -5,6 +5,7 @@ import ( "strings" "testing" + "thehouseoficarus/internal/casino" "thehouseoficarus/internal/item" "thehouseoficarus/internal/object" "thehouseoficarus/internal/validate" @@ -292,6 +293,16 @@ func TestVestaCasinoFloorsAndVariants(t *testing.T) { future++ } count := len(r.CasinoTables) + len(r.CasinoMachines) + // Individually addressed video-poker cabinets share a lounge. + // Multiplayer games still require their own salons. + for _, cfg := range r.CasinoTables { + if cfg.Game == casino.GameVideoPoker { + count-- + if cfg.Normalize().MaxPlayers != 1 { + t.Errorf("room %d: poker cabinet is not single-seat", id) + } + } + } if count > 1 { t.Errorf("room %d: games must have individual salons", id) } @@ -309,7 +320,7 @@ func TestVestaCasinoFloorsAndVariants(t *testing.T) { classic = classic || machine.Variant == "" } } - if games["blackjack"] != 5 || games["baccarat"] != 3 || games["roulette"] != 3 || games["craps"] != 7 || games["slots"] != 5 || !soft17 || !surrender || !singleDeck || !huff || !classic { + if games["blackjack"] != 5 || games["baccarat"] != 3 || games["roulette"] != 3 || games["craps"] != 7 || games["slots"] != 5 || games["video_poker"] != 5 || !soft17 || !surrender || !singleDeck || !huff || !classic { t.Errorf("casino variant coverage lost: %v", games) } if future != 0 { @@ -317,7 +328,7 @@ func TestVestaCasinoFloorsAndVariants(t *testing.T) { } // One salon per game sits on the gaming street; each keeps its editions // within a couple of steps north or south, so no variant is ever far away. - street := map[int]string{6101: "blackjack", 6127: "baccarat", 6182: "roulette", 6185: "craps", 6118: "slots"} + street := map[int]string{6101: "blackjack", 6127: "baccarat", 6182: "roulette", 6185: "craps", 6118: "slots", 6192: "video_poker"} for id, game := range street { r := rooms[id] found := false @@ -339,7 +350,8 @@ func TestVestaCasinoFloorsAndVariants(t *testing.T) { 6127: {world.West, world.East}, 6182: {world.West, world.East}, 6185: {world.West, world.East}, - 6118: {world.West}, + 6118: {world.West, world.East}, + 6192: {world.West}, } { r := rooms[id] for _, dir := range want { |
