Maze generation: Difference between revisions

(→‎{{header|PureBasic}}: changed some code constants)
Line 896:
s1 += " +" if (i - width) in cells[i] else "--+"
s2 += " " if (i + 1) in cells[i] else " |"
print s1"+" += "--+" * width
 
s1 = "+"
for i in xrange(width):
s1 += "--+"
print s1
 
height, width = 8, 11
 
show_maze(make_maze(height, width), height, width)</lang>
def main():
height, width = 8, 11
show_maze(make_maze(height, width), height, width)
 
 
if __name__=="__main__":
main()</lang>
Sample Output:
<pre>
Anonymous user