Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

IIRC the rules system for magic the gathering: Arena is generated by a sort of compiler fed the rules. You might not even need a modern coding assistant to build out something reasonable in a DSL that is perfect, then have people (or an LLM after fine tuning) transforms rule books into the DSL.


They have an interesting write up here: https://magic.wizards.com/en/news/mtg-arena/on-whiteboards-n...

There's a lisp variant involved, and IIRC even a parser that reads the card text to auto-generate the rules code for most of the cards.


Tho tbf there are plenty of cards with what are essentially footnotes. They say reading the card explains the card but that's not always the case, sometimes there's nuance because mtg has so many fucking crazy interactions and the whole stack thing.

I haven't played in a month or two but now I'm getting that itch again aha. When's bloomburrow 2, enough of this UB crap.




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: