-
Notifications
You must be signed in to change notification settings - Fork 0
/
constants.py
114 lines (106 loc) · 1.62 KB
/
constants.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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
from enum import Enum
RealCards = ['D', 'X', '2', 'A', 'K', 'Q', 'J', 'T', '9', '8', '7', '6', '5', '4', '3']
Bombs = [
[3, 3, 3, 3],
[4, 4, 4, 4],
[5, 5, 5, 5],
[6, 6, 6, 6],
[7, 7, 7, 7],
[8, 8, 8, 8],
[9, 9, 9, 9],
[10, 10, 10, 10],
[11, 11, 11, 11],
[12, 12, 12, 12],
[13, 13, 13, 13],
[14, 14, 14, 14],
[17, 17, 17, 17],
[30, 20]
]
RealCard2EnvCard = {
'3': 3,
'4': 4,
'5': 5,
'6': 6,
'7': 7,
'8': 8,
'9': 9,
'T': 10,
'J': 11,
'Q': 12,
'K': 13,
'A': 14,
'2': 17,
'X': 20,
'D': 30
}
AllEnvCard = [
3, 3, 3, 3,
4, 4, 4, 4,
5, 5, 5, 5,
6, 6, 6, 6,
7, 7, 7, 7,
8, 8, 8, 8,
9, 9, 9, 9,
10, 10, 10, 10,
11, 11, 11, 11,
12, 12, 12, 12,
13, 13, 13, 13,
14, 14, 14, 14,
17, 17, 17, 17,
20, 30
]
EnvCard2RealCard = {
3: '3',
4: '4',
5: '5',
6: '6',
7: '7',
8: '8',
9: '9',
10: 'T',
11: 'J',
12: 'Q',
13: 'K',
14: 'A',
17: '2',
20: 'X',
30: 'D'
}
EnvCard2IdxMap = {
3: 0,
4: 1,
5: 2,
6: 3,
7: 4,
8: 5,
9: 6,
10: 7,
11: 8,
12: 9,
13: 10,
14: 11,
17: 12,
20: 13,
30: 14
}
RealCard2IdxMap = {
'3': 0,
'4': 1,
'5': 2,
'6': 3,
'7': 4,
'8': 5,
'9': 6,
'T': 7,
'J': 8,
'Q': 9,
'K': 10,
'A': 11,
'2': 12,
'X': 13,
'D': 14
}
class AutomaticModeEnum(Enum):
FULL = 1
SEMI = 2
MANUAL = 3