Documented constraints.diagonal test more better.
[pseudoku.git] / pseudoku / __init__.py
index 2fe15f3..33fe0b5 100644 (file)
@@ -1,26 +1,6 @@
 from grid import Grid
-from grid.cellgroup import Diagonal
+from grid.constraints import Diagonal
 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!"