add rule to generate list of format staples from mtggoldfish.com

master
melvinzhang 2016-06-21 18:29:30 +08:00
parent 0c8d23de79
commit e067978135
1 changed files with 19 additions and 0 deletions

View File

@ -113,6 +113,25 @@ cards/unimplementable.tsv.add: cards/candidates_full.txt
grep "|" $^ | sed 's/NAME://;s/|/\t/' >> $(basename $@)
make $^
cards/staples.txt:
curl \
http://www.mtggoldfish.com/format-staples/standard/full/creatures \
http://www.mtggoldfish.com/format-staples/standard/full/lands \
http://www.mtggoldfish.com/format-staples/standard/full/spells \
http://www.mtggoldfish.com/format-staples/modern/full/creatures \
http://www.mtggoldfish.com/format-staples/modern/full/lands \
http://www.mtggoldfish.com/format-staples/modern/full/spells \
http://www.mtggoldfish.com/format-staples/pauper/full/creatures \
http://www.mtggoldfish.com/format-staples/pauper/full/lands \
http://www.mtggoldfish.com/format-staples/pauper/full/spells \
http://www.mtggoldfish.com/format-staples/legacy/full/creatures \
http://www.mtggoldfish.com/format-staples/legacy/full/lands \
http://www.mtggoldfish.com/format-staples/legacy/full/spells \
http://www.mtggoldfish.com/format-staples/vintage/full/creatures \
http://www.mtggoldfish.com/format-staples/vintage/full/lands \
http://www.mtggoldfish.com/format-staples/vintage/full/spells \
| pup ".col-card a text{}" | sed "s/'/'/g;s/ (.*)//g" | sort | uniq > $@
%.out: $(MAG)
SGE_TASK_ID=$* exp/eval_mcts.sh