represent r0 as kt

This commit is contained in:
Maximilian Keßler 2024-01-14 13:07:53 +01:00
parent 3ac51d574e
commit 51e09cd943
Signed by: max
GPG key ID: BCC5A619923C0BA5

View file

@ -39,6 +39,8 @@ class DeckCard:
return self.suitIndex == other.suitIndex and self.rank == other.rank return self.suitIndex == other.suitIndex and self.rank == other.rank
def __repr__(self): def __repr__(self):
if self.suitIndex == 0 and self.rank == 0:
return "kt"
return constants.COLOR_INITIALS[self.suitIndex] + str(self.rank) return constants.COLOR_INITIALS[self.suitIndex] + str(self.rank)
def __hash__(self): def __hash__(self):