golang based MTG engine
// momentum
// why it's here
- Active: last commit today
- Health 100/100 with only 6 stars
// how to help
// readme
gorge
This repository holds two Magic: The Gathering rules engines in pure Go, a server and browser client to play on them, and the bots and draft stack around them.
gorge plays two to eight seats, Constructed and Commander. It compiles Forgeโs card scripts instead of hand-coding cards, and records every game as a deterministic, hash-chained event log that replays byte for byte.
dirac plays two to four seats, built for search and self-play: a game is one flat value and one buffer sized to its card table, copied in place. It plays only cards it has shown it agrees with gorge on, decision by decision, and refuses the rest by name.
Run it: a container image of green main, published daily. The newest oracle-green
commit on main is built at 06:30 UTC and pushed as
ghcr.io/adams-shaun/gorge,
tagged :latest, :YYYY-MM-DD (the build day, UTC; the newest date tag is the imageโs date) and :<sha>.
docker run --rm -p 8080:8080 ghcr.io/adams-shaun/gorge:latest # then open http://localhost:8080