Anonymous user
Maze generation: Difference between revisions
m
→{{header|REXX}}: changed the displayed (output) maze from 20x20 to 10x10. -- ~~~~
(→{{header|REXX}}: added the REXX language. -- ~~~~) |
m (→{{header|REXX}}: changed the displayed (output) maze from 20x20 to 10x10. -- ~~~~) |
||
Line 2,735:
buildRow: parse arg z; height=height+1; width=length(z)
do c=1 for width; @.height.c=substr(z,c,1); end; return</lang>
'''output''' when using the
<pre style="overflow:scroll">
┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┐
│
├
│
├
│
├ ┼
│ │
├
│
│
▲├ ┼───┼───┼ ┼ ┼───┼───┼───┼───┼ ┼ ┼ ┼ ┼ ┼ ┼───┼ ┼───┼ ┤
│ │
▲├───┼ ┼ ┼───┼───┼───┼ ┼ ┼ ┼ ┼───┼ ┼ ┼ ┼───┼ ┼───┼ ┼ ┤
│
├ ┼───┼
│ │
└───┴───┴───┴───┴───┴───┴───┴───┴───┴───┘
▲├ ┼ ┼───┼ ┼ ┼ ┼ ┼───┼ ┼ ┼───┼ ┼───┼───┼───┼ ┼ ┼ ┼ ┤
▲├ ┼ ┼ ┼───┼ ┼ ┼───┼ ┼ ┼ ┼ ┼ ┼───┼───┼───┼───┼ ┼ ┼ ┤
</pre>
|