-
Notifications
You must be signed in to change notification settings - Fork 0
/
constants.py
47 lines (38 loc) · 1.01 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
CT = 0 # center BoardTile
RT = 1 # Regular BoardTile
DL = 2 # double letter
TL = 3 # etc
DW = 4
TW = 5
ED = -1 # edge tile
INITIAL_SCRABBLE_BAG_COUNT = {
'A': 9, 'B': 2, 'C': 2, 'D': 4, 'E': 12, 'F': 2, 'G': 3, 'H': 2, 'I': 9, 'J': 1,
'K': 1, 'L': 4, 'M': 2, 'N': 6, 'O': 8, 'P': 2, 'Q': 1, 'R': 6, 'S': 4, 'T': 6,
'U': 4, 'V': 2, 'W': 2, 'X': 1, 'Y': 2, 'Z': 1, '?': 2
}
SCRABBLE_LETTER_POINTS = {
'A': 1, 'B': 3, 'C': 3, 'D': 2, 'E': 1, 'F': 4, 'G': 2, 'H': 4, 'I': 1, 'J': 8,
'K': 5, 'L': 1, 'M': 3, 'N': 1, 'O': 1, 'P': 3, 'Q': 10, 'R': 1, 'S': 1, 'T': 1,
'U': 1, 'V': 4, 'W': 4, 'X': 8, 'Y': 4, 'Z': 10, '?': 0
}
CENTER_X = 7
CENTER_Y = 7
BOARD_X = 15
BOARD_Y = 15
MAX_XRANGE = 15
MAX_YRANGE = 15
MAX_XINDEX = 14
MAX_YINDEX = 14
MIN_XRANGE = 0
MIN_YRANGE = 0
TILE_SIZE = 30
SQUARE_SIZE = 35
BOARD_TILES = ["CT", "RT", "DL", "TL", "DW", "TW"]
BOARD_COLORS = {
"CT": "deeppink1",
"RT": "beige",
"DL": "cyan",
"TL": "deepskyblue2",
"DW": "darkorchid1",
"TW": "orange"
}