Magic: The Gathering has over 28,000 unique cards. Each one can interact with every other in ways the designers never anticipated. The comprehensive rules document is over 200 pages long.I decided to build an engine that implements all of it. And I barely wrote any code myself.