From 9d9e8675a92b64f742c007f6954a634a4abbfb85 Mon Sep 17 00:00:00 2001 From: KoalaTrapLord <265133236+KoalaTrapLord@users.noreply.github.com> Date: Fri, 27 Mar 2026 23:36:02 -0400 Subject: [PATCH] fix: restore missing # on line 27 section banner in rules.py (SyntaxError on import) --- src/commander_ai_lab/sim/rules.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/commander_ai_lab/sim/rules.py b/src/commander_ai_lab/sim/rules.py index 0a8b2fd..185dce2 100644 --- a/src/commander_ai_lab/sim/rules.py +++ b/src/commander_ai_lab/sim/rules.py @@ -23,9 +23,9 @@ from commander_ai_lab.sim.models import Card from commander_ai_lab.sim.forge_card_loader import lookup_forge_card, ForgeCardData -# ══════════════════════════════════════════════════════════════ -AI Weights (ported from AI_DEFAULT_WEIGHTS in app.js) -# ══════════════════════════════════════════════════════════════ +# ════════════════════════════════════════════════════════════ +# AI Weights (ported from AI_DEFAULT_WEIGHTS in app.js) +# ════════════════════════════════════════════════════════════ AI_DEFAULT_WEIGHTS: dict[str, float] = { # Card scoring @@ -107,10 +107,10 @@ def load_weights(path: Optional[str] = None) -> dict[str, float]: return dict(AI_DEFAULT_WEIGHTS) -# ══════════════════════════════════════════════════════════════ +# ════════════════════════════════════════════════════════════ # Card Enrichment — guess type/cost for cards without Scryfall data # Ported from enrichCardForSim() in deck_tester_js.txt -# ══════════════════════════════════════════════════════════════ +# ════════════════════════════════════════════════════════════ _BASIC_LAND_COLORS = { "plains": "W", @@ -312,7 +312,7 @@ def _apply_oracle_flags(card: Card) -> None: card.is_ramp = True -# ── Direct-damage (burn spell) detection ──────────────────────────── +# ── Direct-damage (burn spell) detection ──────────────────────────────────── # Regex: "deals N damage to target|any target" (not "each creature" — that's a wipe) _DIRECT_DAMAGE_RE = re.compile( @@ -370,7 +370,7 @@ def _detect_direct_damage(card: Card, oracle: str) -> None: card.direct_damage_amount = int(m.group(1)) -# ── Multi-opponent scaling factors ──────────────────────────────── +# ── Multi-opponent scaling factors ───────────────────────────────────────────── # Keywords / effects that become more valuable in larger pods. # Each entry maps a weight key → the extra bonus *per additional # opponent* beyond 1. 1v1 uses base weights; 4-player FFA adds