-
Notifications
You must be signed in to change notification settings - Fork 0
/
grids.py
48 lines (39 loc) · 1.5 KB
/
grids.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
"""
- These are example of grids that you can test the solving algorithm with
"""
hard_1 = [[0, 1, 0, 0, 0, 0, 7, 0, 3],
[7, 0, 0, 8, 1, 0, 0, 2, 0],
[2, 0, 0, 0, 3, 0, 0, 9, 0],
[0, 0, 4, 0, 0, 0, 0, 0, 5],
[0, 0, 0, 1, 7, 2, 0, 0, 0],
[6, 0, 0, 0, 0, 0, 1, 0, 0],
[0, 6, 0, 0, 5, 0, 0, 0, 8],
[0, 2, 0, 0, 4, 8, 0, 0, 7],
[9, 0, 7, 0, 0, 0, 0, 4, 0]]
medium_2 = [[0, 0, 5, 4, 0, 1, 9, 0, 0],
[0, 9, 0, 0, 0, 0, 4, 0, 0],
[0, 0, 0, 0, 0, 9, 0, 0, 5],
[0, 0, 8, 7, 0, 0, 5, 9, 0],
[5, 6, 9, 0, 0, 0, 1, 7, 4],
[0, 1, 3, 0, 0, 5, 6, 0, 0],
[3, 0, 0, 8, 0, 0, 0, 0, 0],
[0, 0, 7, 0, 0, 0, 0, 3, 0],
[0, 0, 4, 6, 0, 3, 7, 0, 0]]
medium_1 = [[0, 1, 9, 8, 0, 0, 3, 0, 0],
[0, 0, 5, 0, 2, 0, 0, 0, 0],
[0, 4, 7, 5, 0, 3, 0, 6, 0],
[0, 0, 0, 0, 0, 0, 5, 0, 2],
[6, 3, 0, 0, 0, 0, 0, 8, 4],
[1, 0, 8, 0, 0, 0, 0, 0, 0],
[0, 8, 0, 6, 0, 9, 7, 2, 0],
[0, 0, 0, 0, 8, 0, 6, 0, 0],
[0, 0, 6, 0, 0, 2, 4, 9, 0]]
easy_1 = [[0, 0, 0, 0, 0, 1, 9, 8, 0],
[0, 0, 6, 3, 4, 0, 0, 0, 2],
[0, 0,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