-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathboards_available.py
35 lines (28 loc) · 1022 Bytes
/
boards_available.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
from app_class import *
from secrets import *
# Boards (Zeros must be strings or the whole thing won't work)
board1 = [
['0', '0', '0', 2, 6, '0', 7, '0', 1],
[6, 8, '0', '0', 7, '0', '0', 9, '0'],
[1, 9, '0', '0', '0', 4, 5, '0', '0'],
[8, 2, '0', 1, '0', '0', '0', 4, '0'],
['0', '0', 4, 6, '0', 2, 9, '0', '0'],
['0', 5, '0', '0', '0', 3, '0', 2, 8],
['0', '0', 9, 3, '0', '0', '0', 7, 4],
['0', 4, '0', '0', 5, '0', '0', 3, 6],
[7, '0', 3, '0', 1, 8, '0', '0', '0']
]
board2 = [
['0', 3, '0', '0', '0', '0', '0', '0', '0'],
['0', 2, '0', 9, '0', 6, 3, '0', '0'],
['0', 6, '0', 4, '0', 2, '0', 9, '0'],
[1, '0', '0', '0', 9, '0', 4, '0', '0'],
['0', '0', 8, 1, '0', 3, 5, '0', '0'],
['0', '0', 5, '0', 7, '0', '0', '0', 3],
['0', 5, '0', 3, '0', 1, '0', 6, '0'],
['0', '0', 4, 6, '0', 7, '0', 3, '0'],
['0', '0', '0', '0', '0', '0', 8, '0', '0']
]
boards_list = [board1, board2]
board_used = choice(boards_list)
board_solved = board_used