-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconstants.py
47 lines (37 loc) · 1.09 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
INITIAL_STANDARD_DOMAIN = [1,2,3,4,5,6,7,8,9]
SUDOKUDOMAIN = INITIAL_STANDARD_DOMAIN # used in sudokuGraphify and main
ROW_LETTER_AS_KEY = {'A':0, 'B':1,'C':2,'D':3,'E':4,'F':5,'G':6,'H':7,'I':8} #letter based key
ROW_INDEX_AS_KEY = {0:'A', 1:'B',2:'C',3:'D',4:'E',5:'F',6:'G',7:'H',8:'I'} #index based key
AC3_SOLVABLE_BOARD = [
[4,8,3, 9,2,1, 6,5,7],
[9,6,0, 3,4,5, 8,0,1],
[2,5,1, 8,7,6, 4,9,3],
[5,4,8, 1,3,2, 9,7,6],
[7,2,9, 5,0,0, 1,3,8],
[1,0,6, 7,9,8, 2,0,5],
[3,7,2, 6,8,9, 5,1,4],
[0,1,0, 2,5,3, 7,6,9],
[6,9,5, 4,1,7, 0,8,2],
]
AC3_UNSOLVABLE_BOARD = [
[0,0,3, 0,2,0, 6,0,0],
[9,0,0, 3,0,5, 0,0,1],
[0,0,1, 8,0,6, 4,0,0],
[0,0,8, 1,0,2, 9,0,0],
[7,0,0, 0,0,0, 0,0,8],
[0,0,6, 7,0,8, 2,0,0],
[0,0,2, 6,0,9, 5,0,0],
[8,0,0, 2,0,3, 0,0,9],
[0,0,5, 0,1,0, 3,0,0],
]
RANDOM_BOARD = [
[5,3,0, 0,7,0, 0,0,0],
[6,0,0, 1,9,5, 0,0,0],
[0,9,8, 0,0,0, 0,6,0],
[8,0,0, 0,6,0, 0,0,3],
[4,0,0, 8,0,3, 0,0,1],
[7,0,0, 0,2,0, 0,0,6],
[0,6,0, 0,0,0, 2,8,0],
[0,0,0, 4,1,9, 0,0,5],
[0,0,0, 0,8,0, 0,7,9],
]