From 2e4a3c9889058d0e00c293f94fbc9d443d7a24e4 Mon Sep 17 00:00:00 2001 From: henriquenakashima Date: Fri, 19 Mar 2021 21:57:05 -0400 Subject: [PATCH] Print intersection of archetypes --- archetype_report.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/archetype_report.py b/archetype_report.py index cb55d71..da88f1e 100644 --- a/archetype_report.py +++ b/archetype_report.py @@ -20,6 +20,9 @@ ARCHETYPE_TAGS = [ 'zombies', 'goblins', 'elves', + + 'heroic', + 'fliers', 'burn', 'ramp', @@ -30,7 +33,6 @@ ARCHETYPE_TAGS = [ 'spells', 'blink', - 'heroic', ] @@ -63,7 +65,8 @@ def main(): for category, cards in cards_per_category.items(): print(f'Category: {category} - {len(cards)} card{"s" if len(cards) != 1 else ""}') 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()