-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsudoku_puzzles.py
74 lines (70 loc) · 1.79 KB
/
sudoku_puzzles.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
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
def sudoku_1():
#Facil
sudoku = [
[9, 2, 0, 0, 0, 5, 8, 0, 0],
[0, 0, 1, 7, 2, 6, 3, 0, 9],
[0, 0, 3, 8, 9, 1, 2, 0, 6],
[0, 8, 0, 0, 0, 0, 1, 0, 2],
[7, 0, 0, 0, 6, 0, 5, 0, 8],
[0, 0, 0, 0, 3, 0, 7, 0, 0],
[5, 0, 8, 0, 1, 3, 0, 0, 7],
[0, 4, 0, 6, 0, 7, 9, 1, 5],
[0, 0, 0, 2, 0, 0, 6, 0, 0]
]
return sudoku
def sudoku_2():
#Intermediario
sudoku = [
[0, 0, 4, 0, 0, 0, 3, 0, 2],
[0, 7, 0, 4, 0, 2, 0, 0, 0],
[0, 0, 0, 0, 6, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 0, 0, 3, 0],
[0, 0, 0, 0, 0, 0, 0, 5, 0],
[0, 0, 1, 7, 8, 0, 6, 0, 0],
[0, 0, 0, 0, 0, 3, 0, 0, 0],
[0, 0, 8, 0, 0, 0, 9, 0, 7],
[9, 0, 0, 0, 1, 0, 0, 0, 0]
]
return sudoku
def sudoku_3():
#Intermediario
sudoku = [
[1, 0, 0, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 3, 9, 0, 0, 0, 1],
[4, 0, 0, 0, 0, 0, 0, 7, 0],
[0, 0, 8, 0, 0, 2, 0, 0, 0],
[5, 0, 0, 0, 0, 0, 1, 0, 0],
[0, 0, 0, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 1, 0, 0, 2, 0],
[0, 8, 0, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 0, 0, 0, 0]
]
return sudoku
def sudoku_4():
#Dificil
sudoku = [
[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]
]
return sudoku
def sudoku_5():
#Dificil
sudoku = [
[0, 0, 0, 0, 0, 0, 0, 0, 8],
[7, 3, 0, 0, 2, 8, 0, 5, 0],
[0, 0, 0, 0, 1, 5, 0, 7, 0],
[0, 0, 0, 3, 0, 0, 7, 0, 5],
[5, 0, 0, 0, 0, 0, 0, 0, 1],
[6, 0, 3, 0, 0, 7, 0, 0, 0],
[0, 4, 0, 8, 6, 0, 0, 0, 0],
[0, 9, 0, 7, 3, 0, 0, 8, 4],
[8, 0, 0, 0, 0, 0, 0, 0, 0]
]
return sudoku