Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
How many MTG cards would not fit on a future sight border?
import json
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
You can’t perform that action at this time.