shortdeck1.2

This commit is contained in:
2025-10-09 15:27:17 +08:00
parent 7071eaa12b
commit 4763f9a630
19 changed files with 615 additions and 250 deletions

View File

@@ -30,6 +30,14 @@ class Rank(IntEnum):
if self.value <= 9:
return str(self.value)
return {10: "T", 11: "J", 12: "Q", 13: "K", 14: "A"}[self.value]
@property
def numeric_value(self):
return self.value
@property
def symbol(self):
return str(self)
class Card: