2022-11-18 13:10:08 +00:00
|
|
|
from enum import IntEnum, auto
|
|
|
|
|
|
|
|
from poker.utils.enum import AutoName
|
|
|
|
|
|
|
|
|
|
|
|
class Suit(AutoName):
|
|
|
|
"""Card suit enum."""
|
|
|
|
|
2022-11-18 13:31:23 +00:00
|
|
|
CLUBS = auto()
|
|
|
|
DIAMONDS = auto()
|
|
|
|
HEARTS = auto()
|
|
|
|
SPADES = auto()
|
2022-11-18 13:10:08 +00:00
|
|
|
|
|
|
|
|
|
|
|
class Value(IntEnum):
|
|
|
|
"""Card value enum."""
|
|
|
|
|
|
|
|
ACE = 1
|
|
|
|
TWO = 2
|
|
|
|
THREE = 3
|
|
|
|
FOUR = 4
|
|
|
|
FIVE = 5
|
|
|
|
SIX = 6
|
|
|
|
SEVEN = 7
|
|
|
|
EIGHT = 8
|
|
|
|
NINE = 9
|
|
|
|
TEN = 10
|
|
|
|
JACK = 11
|
|
|
|
QUEEN = 12
|
|
|
|
KING = 13
|