Maze generation: Difference between revisions
Content added Content deleted
(Added Chapel language implementation) |
m (→{{header|Chapel}}: Minor cosmetic code change to Chapel maze output) |
||
Line 2,191: | Line 2,191: | ||
for row in maze.dim(0) { |
for row in maze.dim(0) { |
||
for col in maze.dim(1) { |
for col in maze.dim(1) { |
||
if maze[row, col].spaces[direction.N] then write("+ "); else write("+---"); |
|||
if cell.spaces[direction.N] then write("+ "); else write("+---"); |
|||
} |
} |
||
writeln("+"); |
writeln("+"); |
||
for col in maze.dim(1) { |
for col in maze.dim(1) { |
||
if maze[row, col].spaces[direction.W] then write(" "); else write("| "); |
|||
if cell.spaces[direction.W] then write(" "); else write("| "); |
|||
} |
} |
||
writeln("|"); |
writeln("|"); |