aboutsummaryrefslogtreecommitdiff
path: root/internal/game/vesta_world_test.go
diff options
context:
space:
mode:
authorhistoria <[not public]>2026-10-01 04:26:20 -0400
committerhistoria <[not public]>2026-10-01 04:26:20 -0400
commit0ba388bbe229dd1ccfcb0831d21a5542ae0935f1 (patch)
treec5686cf404e3dc5001d2c9b2792749ae7a3c9801 /internal/game/vesta_world_test.go
parente3ff06fc79682673194c8913f0feb9e90920e7d0 (diff)
downloadthehouseoficarus-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.go18
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 {