shortdeck1.2
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user