853904b12658505f17aefb9f450b8780d38a1207
[pseudoku.git] / pseudoku / __init__.py
1 from grid import Grid
2 import render.text
3
4 def main():
5 grid = Grid.from_string("""
6 3...2...7
7 ...3.1...
8 ..6...4..
9 89.....54
10 4...5...8
11 61.....32
12 ..8...2..
13 ...5.9...
14 1...6...9
15 """)
16
17 r = render.text.AsciiArtGridRenderer()
18 print r.render_grid(grid)
19
20 grid.solve()
21
22 print r.render_grid(grid)