Print intersection of archetypes
This commit is contained in:
parent
f6b17b59a2
commit
2e4a3c9889
1 changed files with 5 additions and 2 deletions
|
|
@ -20,6 +20,9 @@ ARCHETYPE_TAGS = [
|
||||||
'zombies',
|
'zombies',
|
||||||
'goblins',
|
'goblins',
|
||||||
'elves',
|
'elves',
|
||||||
|
|
||||||
|
'heroic',
|
||||||
|
'fliers',
|
||||||
'burn',
|
'burn',
|
||||||
'ramp',
|
'ramp',
|
||||||
|
|
||||||
|
|
@ -30,7 +33,6 @@ ARCHETYPE_TAGS = [
|
||||||
'spells',
|
'spells',
|
||||||
|
|
||||||
'blink',
|
'blink',
|
||||||
'heroic',
|
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -63,7 +65,8 @@ def main():
|
||||||
for category, cards in cards_per_category.items():
|
for category, cards in cards_per_category.items():
|
||||||
print(f'Category: {category} - {len(cards)} card{"s" if len(cards) != 1 else ""}')
|
print(f'Category: {category} - {len(cards)} card{"s" if len(cards) != 1 else ""}')
|
||||||
for i, card in enumerate(cards, 1):
|
for i, card in enumerate(cards, 1):
|
||||||
print(f'{i:2d} {card.name}')
|
intersection = [tag for tag in card.tags if tag != arguments.archetype and tag in ARCHETYPE_TAGS]
|
||||||
|
print(f'{i:2d} {card.name} ([{len(intersection) + 1}]: {intersection})')
|
||||||
print()
|
print()
|
||||||
|
|
||||||
print()
|
print()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue