|
|
|
|
|
by deosjr
39 days ago
|
|
This might be your jam. I should revisit this, most of it is unimplemented. But the parsing part was interesting, since MTG has such a codified language for explaining the rules. My idea here was to take a card's rules text from the official API and parse it into smth that can be used in the game, so you could keep up with new sets with implementation. The weird rule-breaking edge cases will always fail, but a large set of design space can fit, I think. See https://github.com/deosjr/pmtg/blob/master/parse.pl |
|