#5 · Primary category: Game AI & Behavior Trees
forge
An unofficial rules engine for the world's greatest card game.
Project last updated:08/29/26
GitHub Stars
2.6K
Forks
1.1K
Contributors
372
License
GPL-3.0
Why we included this project
Forge is an open-source rules engine for Magic: The Gathering, written in Java, and it also works as a playable game on Windows, Mac, Linux, and Android. The part that matters for AI work is the computer opponents: they make decisions inside a full implementation of the game's rules rather than a simplified version. So the AI code has to reason about card interactions and timing the way a real player would, and keep track of game state as it changes. The engine is modular enough that a community has added thousands of cards over the years, which shows how a rules system stays maintainable as it grows. Single-player adventure and online modes make it a working example of game AI and rules logic in one product.
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
mage
XMage - Magic Another Game Engine
lc0
Open source neural network chess engine with GPU acceleration and broad hardware support.
beehave
🐝 behavior tree AI for Godot Engine
limboai
LimboAI - Behavior Trees and State Machines for Godot 4