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:
do #=1 for ht; _= @.# /*display the maze to the terminal. */
call makeNice /*prettify cell corners and dead─ends. */
_= changestr(1 1 ,_, _ , 111 ) ) /*──────these four ────────────────────*/
_= changestr(0 0 ,_, _ , 000 ) ) /*───────── statements are ────────────*/
_= changestr(. . ,_, _ " , " ) " ) /*────────────── used for preserving ──*/
_= changestr('~', _, , "───" ) ) /*────────────────── the aspect ratio. */
say translate( _ , '─│' , "═|\10") ) /*make it presentable for the screen. */
end /*#*/
end /*#*/
exit /*stick a fork in it, we're all done. */