From 019a710acde480d01167d7cc0866b3c1845fc95d Mon Sep 17 00:00:00 2001 From: KoalaTrapLord Date: Tue, 17 Mar 2026 03:18:06 +0000 Subject: [PATCH] feat: add command_zone and commander_tax to Player dataclass Adds command_zone (list[Card]) and commander_tax (int, +2 per cast) to the base Player model so the headless engine can track commander zone and tax natively without requiring CommanderPlayer wrappers. --- src/commander_ai_lab/sim/models.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/commander_ai_lab/sim/models.py b/src/commander_ai_lab/sim/models.py index ea824c5..0158a34 100644 --- a/src/commander_ai_lab/sim/models.py +++ b/src/commander_ai_lab/sim/models.py @@ -142,6 +142,8 @@ class Player: hand: list[Card] = field(default_factory=list) graveyard: list[Card] = field(default_factory=list) exile: list[Card] = field(default_factory=list) + command_zone: list[Card] = field(default_factory=list) + commander_tax: int = 0 # +2 per cast from command zone stats: PlayerStats = field(default_factory=PlayerStats)