About
cEDH AI is a systems and research project — a fully deterministic Magic: The Gathering rules engine built for Competitive Commander (cEDH). It is not a consumer product. It is a platform.
The engine models the Comprehensive Rules explicitly: turn structure, priority, the stack, state-based actions, continuous effects across all seven dependency layers, replacement effects, triggered and activated abilities, and Commander-specific rules. Cards are not implemented as code — they are compiled from Oracle text into structured JSON that the engine evaluates deterministically.
The long-term goal is a stable game API that AI agents, simulators, and research tools can consume headlessly — no UI required. A React frontend exists for inspection and private playtesting, not as the primary interface.
Current State
- 4,500+ passing tests, 0 failures
- 423 hand-curated cEDH staples + 30,000+ auto-compiled cards
- Five AI agents: Random → Heuristic → Evaluation → MCTS → Combo
- Full lobby system with multi-player support and WebSocket real-time updates
- 92% Comprehensive Rules compliance, active development toward 100%
This is private alpha. Rules correctness is the top priority.
Play a game →
Read the research →