c7a803bef2116d3d1b4b4db1afd75f9f0ca19552
2 from grid
.constraints
import Diagonal
6 grid
= Grid
.from_string("""
18 grid
.add_constraint(Diagonal(grid
, direction
='down', offset
=0))
19 grid
.add_constraint(Diagonal(grid
, direction
='up', offset
=0))
21 r
= render
.text
.AsciiArtGridRenderer()
22 print r
.render_grid(grid
)
26 print r
.render_grid(grid
)