#5 · Primary category: Game AI & Behavior Trees

forge

adventure ai android java magic-the-gathering quest rules-engine

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