Anonymous user
Maze generation: Difference between revisions
→{{header|Python}}
(→{{header|PureBasic}}: changed some code constants) |
|||
Line 896:
s1 += " +" if (i - width) in cells[i] else "--+"
s2 += " " if (i + 1) in cells[i] else " |"
▲ s1 += "--+"
▲ height, width = 8, 11
▲ show_maze(make_maze(height, width), height, width)
Sample Output:
<pre>
|