2 from grid
.cellgroup
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
)