-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsettings.py
More file actions
40 lines (33 loc) · 1.12 KB
/
Copy pathsettings.py
File metadata and controls
40 lines (33 loc) · 1.12 KB
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
WIDTH = 600
HEIGHT = 600
# colours
WHITE = (255, 255, 255)
BLACK = (0, 0, 0)
GREEN = (7, 208, 182)
PINK = (255, 223, 241)
LOCKEDCLR = (255, 153, 127)
INCORRECTCLR = (255,40,58)
# boards
game_board = [[0 for x in range(9)] for x in range(9)]
game_board2 = [[0, 0, 7, 0, 0, 0, 0, 0, 8],
[0, 0, 0, 0, 3, 0, 0, 0, 0],
[0, 0, 3, 0, 0, 0, 0, 0, 1],
[0, 0, 0, 4, 0, 0, 0, 5, 0],
[0, 5, 0, 0, 0, 0, 3, 0, 0],
[0, 0, 0, 0, 0, 1, 0, 0, 7],
[4, 0, 0, 0, 0, 0, 7, 0, 0],
[0, 0, 6, 0, 0, 0, 0, 0, 0],
[1, 0, 0, 0, 0, 0, 8, 2, 0]]
finished_board = [[0, 3, 4, 6, 7, 8, 9, 1, 2],
[6, 7, 2, 1, 9, 5, 3, 4, 8],
[1, 9, 8, 3, 4, 2, 5, 6, 7],
[8, 5, 9, 7, 6, 1, 4, 2, 3],
[4, 2, 6, 8, 5, 3, 7, 9, 1],
[7, 1, 3, 9, 2, 4, 8, 5, 6],
[9, 6, 1, 5, 3, 7, 2, 8, 4],
[2, 8, 7, 4, 1, 9, 6, 3, 5],
[3, 4, 5, 2, 8, 6, 1, 7, 9]]
# position of grid
gridPos = [75, 100]
cellSize = 50
gridSize = cellSize * 9