add pretty print method for decks

This commit is contained in:
Maximilian Keßler 2023-03-18 15:18:04 +01:00
parent 63146046e0
commit ce3d38537f
Signed by: max
GPG key ID: BCC5A619923C0BA5

View file

@ -29,6 +29,9 @@ class DeckCard():
# should be injective enough, we never use cards with ranks differing by 1000
return 1000 * self.suitIndex + self.rank
def pp_deck(deck: List[DeckCard]) -> str:
return "[" + ", ".join(card.colorize() for card in deck) + "]"
class ActionType(Enum):