Magic the Gathering scripts.
analyze_deck_colors
- reports colors of the deck according to correct algorithm [ http://t-a-w.blogspot.com/2013/03/simple-and-correct-algorithm-for.html ]clean_up_decklist
- clean up manually created decklistcod2dck
- convert Cockatrice's .cod to XMage's .dckcod2txt
- convert Cockatrice's .cod to .txt formattxt2cod
- convert plaintext deck formats to Cockatrice's codtxt2dck
- convert plaintext deck format to XMagetxt2txt
- convert plaintext deck format to plaintext deck format (i.e. normalize the decklist)url2cod
- download decklists from URL and convert to .cod (a few popular websites supported)url2dck
- download decklists from URL and convert to XMage .dck formaturl2txt
- download decklists from URL and convert to .txt format
These are used to generate data in data/
, you probably won't need to run them yourself
generate_colors_tsv_mtgjson
- generatedata/colors.tsv
from mtgjson's AllSets-x.json (recommended)generate_colors_tsv_cockatrice
- generatedata/colors.tsv
from cockatrice's cards.xml (use mtgjson instead)mage_card_map_generator
- generatedata/mage_cards.txt