This commit is contained in:
2026-04-01 18:31:33 +02:00
parent 6e23e32bb0
commit b5c7c5305a
95 changed files with 9609 additions and 2374 deletions

View File

@@ -1,13 +1,14 @@
import uuid
from dotenv import load_dotenv
load_dotenv()
from game import (
from game.rules import (
GameState, PlayerState, CardInstance, CombatEvent, GameResult,
create_game, resolve_combat, check_win_condition,
action_play_card, action_sacrifice, action_end_turn,
BOARD_SIZE, HAND_SIZE, STARTING_LIFE, MAX_ENERGY_CAP,
)
import uuid
# ── Helpers ──────────────────────────────────────────────────────────────────
@@ -79,6 +80,8 @@ class TestCreateGame:
card_rarity = "common"
image_link = ""
text = ""
is_favorite = False
willing_to_trade = False
cards = [FakeCard() for _ in range(20)]
state = create_game("p1", "player 1", "test", cards, "p2", "player 2", "test", cards)
@@ -96,6 +99,8 @@ class TestCreateGame:
card_rarity = "common"
image_link = ""
text = ""
is_favorite = False
willing_to_trade = False
cards = [FakeCard() for _ in range(20)]
state = create_game("p1", "player 1", "test", cards, "p2", "player 2", "test", cards)
@@ -113,6 +118,8 @@ class TestCreateGame:
card_rarity = "common"
image_link = ""
text = ""
is_favorite = False
willing_to_trade = False
cards = [FakeCard() for _ in range(20)]
state = create_game("p1", "player 1", "test", cards, "p2", "player 2", "test", cards)
@@ -131,6 +138,8 @@ class TestCreateGame:
card_rarity = "common"
image_link = ""
text = ""
is_favorite = False
willing_to_trade = False
cards = [FakeCard() for _ in range(20)]
state = create_game("p1", "player 1", "test", cards, "p2", "player 2", "test", cards)