add pretty print method for decks
This commit is contained in:
parent
63146046e0
commit
ce3d38537f
1 changed files with 3 additions and 0 deletions
|
@ -29,6 +29,9 @@ class DeckCard():
|
||||||
# should be injective enough, we never use cards with ranks differing by 1000
|
# should be injective enough, we never use cards with ranks differing by 1000
|
||||||
return 1000 * self.suitIndex + self.rank
|
return 1000 * self.suitIndex + self.rank
|
||||||
|
|
||||||
|
def pp_deck(deck: List[DeckCard]) -> str:
|
||||||
|
return "[" + ", ".join(card.colorize() for card in deck) + "]"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class ActionType(Enum):
|
class ActionType(Enum):
|
||||||
|
|
Loading…
Reference in a new issue