Skip to content

Instantly share code, notes, and snippets.

@joferkington
Created November 30, 2018 16:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joferkington/a0cda44cdd51502df28a57133e8798ce to your computer and use it in GitHub Desktop.
Save joferkington/a0cda44cdd51502df28a57133e8798ce to your computer and use it in GitHub Desktop.
How many MTG cards would not fit on a future sight border?
import json
# https://mtgjson.com/v4/json/AllCards.json.zip
with open('AllCards.json', 'r') as infile:
data = json.load(infile)
for name in data:
card = data[name]
cost = card.get('manaCost', '')
if cost.count('{') > 6:
print cost, name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment