Prints a 20 by 20 maze of diagonal graphics blocks, picking one of two characters at random for each square. Run it in SLOW mode for the best effect.
With the two extra lines (5 PRINT AT 0,0; and 70 GOTO 5) the program keeps printing new mazes over the old one, so the maze shifts continuously. Press BREAK to stop. The download has the shifting version and the plain maze.
Published in Syntax August 1982 (Shifting Maze).
Source Code
Maze program:
10 FOR R=0 TO 19
20 FOR C=0 TO 19
30 PRINT CHR$(INT (RND+.5)*2+3);
40 NEXT C
50 PRINT
60 NEXT R
Add for a shifting maze:
5 PRINT AT 0,0;
70 GOTO 5Note: Type-in program listings on this website use ZMAKEBAS notation for graphics characters.

