Maze generation: Difference between revisions
Content deleted Content added
m →{{header|REXX}}: added/changed comments and whitespace. |
m →prettified maze version: aligned some literals. |
||
Line 5,678: | Line 5,678: | ||
do #=1 for ht; _= @.# /*display the maze to the terminal. */ |
do #=1 for ht; _= @.# /*display the maze to the terminal. */ |
||
call makeNice /*prettify cell corners and dead─ends. */ |
call makeNice /*prettify cell corners and dead─ends. */ |
||
_= changestr( |
_= changestr( 1 , _ , 111 ) /*──────these four ────────────────────*/ |
||
_= changestr( |
_= changestr( 0 , _ , 000 ) /*───────── statements are ────────────*/ |
||
_= changestr( |
_= changestr( . , _ , " " ) /*────────────── used for preserving ──*/ |
||
_= changestr('~',_ |
_= changestr('~', _ , "───" ) /*────────────────── the aspect ratio. */ |
||
say translate(_, '─│', "═|\10" |
say translate( _ , '─│' , "═|\10" ) /*make it presentable for the screen. */ |
||
end /*#*/ |
|||
end /*#*/ |
end /*#*/ |
||
exit /*stick a fork in it, we're all done. */ |
exit /*stick a fork in it, we're all done. */ |