-
Notifications
You must be signed in to change notification settings - Fork 0
/
constant.py
78 lines (73 loc) · 1.29 KB
/
constant.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
TYPE_DICT = {1: "Spades", 2: "Hearts", 3: "Clubs", 4: "Diamonds"}
NUM_FULL_DICT = {
0: "Ace",
1: "2",
2: "3",
3: "4",
4: "5",
5: "6",
6: "7",
7: "8",
8: "9",
9: "10",
10: "Jack",
11: "Queen",
12: "King",
}
NUM_SHORT_DICT = {
0: "A",
1: "2",
2: "3",
3: "4",
4: "5",
5: "6",
6: "7",
7: "8",
8: "9",
9: "10",
10: "J",
11: "Q",
12: "K",
}
COMPUTER_PLAYER_LIST = [
"Doctor Strange",
"Batman",
"Hello Kitty",
"Melody",
"Ha Mo Tai Long",
"$Keroro$",
"*CCP*",
"Gambler",
"Ho Kwan Yiu",
"President Xi",
"Carrie Lam",
"Ho Sum Jai",
"Ho Yi Yuen",
"Russia",
"USA",
"Japan Girl",
"Aliensssss",
"Donald Trump",
"Joe Biden",
"HSU Student",
]
# ==========Global Constants===============
# 0-12 => Spades A-K
# 13-25 => Hearts A-K
# 26-38 => Clubs A-K
# 39-51 => Diamonds A-K
TOTAL_CARDS = 52
# Setting of number of player
MIN_NUM_PLAYER = 2
MAX_NUM_PLAYER = 7
DEFAULT_NUM_PLAYER = 3
# ===== System Option List =====
OPTION_LIST = [
"Start Game", # 0
"Edit Setting", # 1
"Log in to retrieve your score", # 2
"Sign up to record your score", # 3
"Log out to the game", # 4
"Restart", # 5
"Quit", # 6
]