import render.text
def main():
- grid = Grid.from_string("""
- 3...2...7
- ...3.1...
- ..6...4..
- 89.....54
- 4...5...8
- 61.....32
- ..8...2..
- ...5.9...
- 1...6...9
- """)
-
- grid.add_constraint(Diagonal(grid, direction='down', offset=0))
- grid.add_constraint(Diagonal(grid, direction='up', offset=0))
-
- r = render.text.AsciiArtGridRenderer()
- print r.render_grid(grid)
-
- grid.solve()
-
- print r.render_grid(grid)
+ print "I don't do anything any more!"