Turned pseudoku.py into a real project.
[pseudoku.git] / lib / pseudoku / __init__.py
1 from grid import Grid
2
3 def main():
4 grid = Grid.from_string("""
5 ...69....
6 9.5..876.
7 ..4..1.2.
8 6...5...3
9 38.....49
10 7...3...2
11 .7.9..3..
12 .231..4.8
13 ....83...
14 """)
15
16 print grid
17
18 grid.solve()
19
20 print grid
21
22
23
24 grid = Grid.from_string("""
25 3...2...7
26 ...3.1...
27 ..6...4..
28 89.....54
29 4...5...8
30 61.....32
31 ..8...2..
32 ...5.9...
33 1...6...9
34 """)
35
36 print grid
37
38 grid.solve()
39
40 print grid