Maze generation: Difference between revisions

Content added Content deleted
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(1 ,_, 111 ) /*──────these four ────────────────────*/
_= changestr( 1 , _ , 111 ) /*──────these four ────────────────────*/
_= changestr(0 ,_, 000 ) /*───────── statements are ────────────*/
_= changestr( 0 , _ , 000 ) /*───────── statements are ────────────*/
_= changestr(. ,_, " " ) /*────────────── used for preserving ──*/
_= changestr( . , _ , " " ) /*────────────── used for preserving ──*/
_= changestr('~',_, "───" ) /*────────────────── the aspect ratio. */
_= changestr('~', _ , "───" ) /*────────────────── the aspect ratio. */
say translate(_, '─│', "═|\10") /*make it presentable for the screen. */
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. */