diff options
author | Paul Harrison <paul@harrison.sh> | 2022-11-18 13:10:08 +0000 |
---|---|---|
committer | Paul Harrison <paul@harrison.sh> | 2022-12-15 16:02:14 +0000 |
commit | adb149e8585d3753d7db0294237ad155123e2587 (patch) | |
tree | d0e0b756417d1124c8eedad9961fb4bf382a42a6 /poker/constants.py | |
parent | 5efd77728dd5a1c6a2fb5070b981ad4d028c3fe1 (diff) |
feat: Implement card and hand domain models
Diffstat (limited to 'poker/constants.py')
-rw-r--r-- | poker/constants.py | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/poker/constants.py b/poker/constants.py new file mode 100644 index 0000000..3eeebff --- /dev/null +++ b/poker/constants.py @@ -0,0 +1,33 @@ +from enum import IntEnum, auto + +from poker.utils.enum import AutoName + + +class Suit(AutoName): + """Card suit enum.""" + + CLUBS: auto() + DIAMONDS: auto() + HEARTS: auto() + SPADES: auto() + + +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 + + + |