projects
/
pseudoku.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Moved stringify cruft into a render module.
[pseudoku.git]
/
pseudoku
/
__init__.py
diff --git
a/pseudoku/__init__.py
b/pseudoku/__init__.py
index
3b6eeb9
..
853904b
100644
(file)
--- a/
pseudoku/__init__.py
+++ b/
pseudoku/__init__.py
@@
-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)