#2 · Primary category: Game AI & Behavior Trees
mage
XMage - Magic Another Game Engine
Project last updated:08/29/26
GitHub Stars
2.3K
Forks
931
Contributors
610
License
MIT
Why we included this project
XMage is the most complete open-source way to play Magic: The Gathering against a computer. It enforces the game's actual rules across tens of thousands of cards, so a Commander game, a draft tournament, or a quick duel runs itself without you tracking phases and priority by hand. The bundled computer opponents give you a solo practice mode, and the client-server design lets you host your own server for games with friends or join public ones. It's also a substantial Java codebase worth reading if you want to see how a complex card game encodes its rules engine and AI decision-making. Just know it's a game engine, not a general-purpose AI library, so it won't help you build other kinds of AI. For MTG automation, it's the most complete option available.
Articles for this project
No articles for this project yet.
To suggest a topic or contribute an article, contact us.
Related projects in this category
recastnavigation
Industry-standard navigation-mesh toolset for games
lc0
Open source neural network chess engine with GPU acceleration and broad hardware support.
beehave
🐝 behavior tree AI for Godot Engine
forge
An unofficial rules engine for the world's greatest card game.
limboai
LimboAI - Behavior Trees and State Machines for Godot 4