magic's best commander generator. trust me.
this project downloads json data and then finds a random legendary creature and shows it to the user. im also utilizing my own json parser. yay.
how to install
you're gonna need lua and a couple libraries. here's how:
1. get lua
mac (homebrew):
linux (apt):
windows:
grab it from the lua website or use luabinaries. good luck.
2. get luarocks
you need luarocks to install the dependencies. if you used homebrew it probably came with lua, but if not:
or check the luarocks site.
3. install dependencies
luarocks install luasocket luarocks install luasec
thats it. thats all you need.
how to run
the first time you run it, it'll download ~127MB of card data from mtgjson. this takes a minute. after that it parses everything and caches the legendary creatures so future runs are basically instant.
what it does
- downloads the full card database from mtgjson
- parses it with a custom json parser (yes i wrote my own. yes it works.)
- finds all legendary creatures
- caches them so you dont have to wait ever again
- picks a random one and shows you your new commander
credits
- mtgjson for the data
