We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 27b6df4 commit 013768bCopy full SHA for 013768b
1 file changed
71_Poker/python/cards/card.py
@@ -1,7 +1,7 @@
1
"""Card primitives: Suits, Ranks, and the Card class."""
2
3
from dataclasses import dataclass
4
-from enum import Enum
+from enum import Enum, IntEnum
5
6
7
class CardSuit(Enum):
@@ -16,7 +16,7 @@ def __str__(self) -> str:
16
return self.name.capitalize()
17
18
19
-class CardRank(Enum):
+class CardRank(IntEnum):
20
"""Card ranks from Two (0) to Ace (12)."""
21
22
TWO = 0
0 commit comments