Moved stringify cruft into a render module.
[pseudoku.git] / pseudoku / __init__.py
index 3b6eeb9..853904b 100644 (file)
@@ -1,4 +1,5 @@
 from grid import Grid
 from grid import Grid
+import render.text
 
 def main():
     grid = Grid.from_string("""
 
 def main():
     grid = Grid.from_string("""
@@ -13,8 +14,9 @@ def main():
         1...6...9
     """)
 
         1...6...9
     """)
 
-    print grid
+    r = render.text.AsciiArtGridRenderer()
+    print r.render_grid(grid)
 
     grid.solve()
 
 
     grid.solve()
 
-    print grid
+    print r.render_grid(grid)