Fills the screen with a random maze. Four user-defined graphics (a crossing, a straight piece and two curving links) are set up from DATA, then 704 of them, picked at random, are printed in inverse video, and a line is drawn round the edge of the screen. After the first RUN, use RUN 20 for a new maze: the pattern changes each time.
By Roy Wisti, with revisions by another member (REM 2). As printed, the UDG set-up loop read past the end of its DATA and poked the wrong addresses; the download has three small corrections (see the notes).
Published in The Plotter January 1991 (Maze Program).
Source Code
2 REM program by Roy Wisti with revisions by Dick Wagner
5 REM after the first RUN then use RUN 20 for the displays
8 REM the displays of the MAZE changes with each RUN 20
10 FOR f=144 TO 144+3: FOR g=0 TO 7
12 READ a: POKE USR CHR$ f+g,a
18 NEXT g: NEXT f:
20 FOR f=1 TO 704
22 PRINT INVERSE 1;CHR$ ((RND*3.5)+144);:
23 NEXT f
30 PLOT 0,0: DRAW 255,0: DRAW 0,175: DRAW -255,0: DRAW 0,-175
50 DATA 24,24,24,219,219,24,24,24
52 DATA 24,24,0,255,255,0,24,24
54 DATA 24,56,112,227,199,24,28,24
56 DATA 24,28,14,199,227,112,56,24Note: Type-in program listings on this website use ZMAKEBAS notation for graphics characters.


