mtg-decks-downloader

Tool to download Magic: The Gathering decklists from the Internet
git clone https://kevincorvisier.fr/git/mtg-decks-downloader.git
Log | Files | Refs | README

README.md (928B)


      1 The file `ai-playable-cards.txt` contains the list of all cards playable by Forge's AI. It is generated from Forge's extracted `res/cardsfolder/cardsfolder.zip` via:
      2 
      3 ```
      4 IFS=$'\n'; for filename in `grep -rL "AI:RemoveDeck:All" /tmp/cardsfolder/`; do grep -E "^Name:" "${filename}" | cut -d ':' -f 2- ; done | dos2unix | sort -u > ai-playable-cards.txt; unset IFS
      5 ```
      6 
      7 The file `ai-unplayable-cards.txt` contains the list of all cards unplayable by Forge's AI. It is generated from Forge's extracted `res/cardsfolder/cardsfolder.zip` via:
      8 
      9 ```
     10 grep --no-filename -B 100 -A 100 -R "AI:RemoveDeck:All" /tmp/cardsfolder/ | grep "Name:" | cut -d ':' -f 2- | dos2unix | sort -u > ai-unplayable-cards.txt
     11 ```
     12 
     13 `banlist_middleschool.txt` is the banlist from Eternal Central: https://www.eternalcentral.com/middleschoolrules/
     14 
     15 `banlist_premodern.txt` is the Premodern banlist from: https://www.premodernmagic.com/banned-watched#ban-list