-
Notifications
You must be signed in to change notification settings - Fork 0
/
card.py
52 lines (43 loc) · 992 Bytes
/
card.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
from enum import auto, IntEnum
class CardColor(IntEnum):
"""
Enum class for the color of the card
"""
RED = 0
BLUE = auto()
GREEN = auto()
YELLOW = auto()
CRAZY = auto()
class CardLabel(IntEnum):
"""
Enum class for the value of the card
"""
ZERO = 0
ONE = auto()
TWO = auto()
THREE = auto()
FOUR = auto()
FIVE = auto()
SIX = auto()
SEVEN = auto()
EIGHT = auto()
NINE = auto()
SKIP = auto()
REVERSE = auto()
DRAW_TWO = auto()
CRAZY = auto()
DRAW_FOUR = auto()
class Card:
def __init__(self, color: CardColor, label: CardLabel) -> None:
"""
Constructor for the Card class
Args:
color (CardColor): The color of the card
label (CardLabel): The label of the card
Returns:
None
Complexity:
Best Case Complexity:
Worst Case Complexity:
"""
raise NotImplementedError