from grid import Grid
+from grid.constraints import Diagonal
import render.text
def main():
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)