from Card import * cards = { 1: Attack, 2: Defend, 3: Heal, 4: Supply, 5: Rob, 6: Card, 7: Card, 8: Card, 9: Card, 10: Card, 11: Bless, 12: Card, } def DeckGen(card_ids): deck = [] for card_id in card_ids: deck.append(cards[card_id]()) return deck def CardGen(card_id): return cards[card_id]()