-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpuzzles.go
109 lines (100 loc) · 2.73 KB
/
puzzles.go
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
package main
type sudokuPuzzle [][]int
func loadSudokuPuzzles() {
// PUZZ 1 - EASY
puzzleList["01-easy"] = sudokuPuzzle{
{0, 3, 0, 0, 4, 1, 0, 0, 8},
{0, 0, 7, 0, 9, 0, 0, 4, 1},
{4, 0, 0, 8, 0, 0, 0, 0, 0},
{0, 0, 0, 6, 8, 0, 5, 9, 4},
{9, 5, 2, 0, 0, 0, 6, 8, 3},
{6, 4, 8, 0, 5, 3, 0, 0, 0},
{0, 0, 0, 0, 0, 6, 0, 0, 7},
{2, 9, 0, 0, 1, 0, 4, 0, 0},
{1, 0, 0, 5, 3, 0, 0, 2, 0},
}
// PUZZ 2 - EASY
puzzleList["02-easy"] = sudokuPuzzle{
{0, 0, 1, 0, 0, 0, 0, 2, 3},
{9, 0, 8, 0, 1, 0, 0, 4, 0},
{2, 5, 0, 0, 9, 0, 0, 1, 0},
{0, 7, 0, 0, 2, 4, 0, 5, 9},
{0, 4, 0, 5, 0, 8, 0, 7, 0},
{6, 2, 0, 1, 7, 0, 0, 3, 0},
{0, 8, 0, 0, 4, 0, 0, 9, 1},
{0, 9, 0, 0, 6, 0, 4, 0, 5},
{7, 1, 0, 0, 0, 0, 3, 0, 0},
}
// PUZZ 1 - MEDIUM
puzzleList["01-medium"] = sudokuPuzzle{
{0, 9, 0, 0, 0, 2, 0, 0, 8},
{0, 0, 0, 0, 0, 0, 0, 3, 7},
{0, 0, 0, 6, 8, 3, 0, 0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