Three short maze generators for the ZX80 (4K ROM), sent in by readers after Otis Imboden’s two-line Maze-O-Graphix appeared in March 1981. Each fills the screen with a random maze and stops when the screen is full; RUN again for a new one. The article suggests them as starting points for games.
J. Alexander Jr. of Scotch Plains, NJ, picks among four block graphics, with rules on which may follow which. D. J. O’Connell Jr. of San Antonio, TX, prints 352 cells, each a random character from the graphics set followed by a fixed pair of blocks; the shaded graphics act as “trap doors.” John P. Filley of Nashville, TN, chooses two wall characters for each maze and scatters an occasional inverse block among them.
The download has the three programs as separate files. In the first listing Syntax printed the graphics in lines 60, 70 and 80 as the keys to type: SHIFT W, SHIFT Q and SHIFT D.
Published in Syntax July 1981 (Maze Options).
Source Code
J. Alexander Jr.
5 LET X=1
10 LET Z=RND(4)
20 GO TO 10*Z+50
60 PRINT "▄";
65 GO TO 100
70 IF NOT X=4 THEN PRINT "▌";
71 IF X=4 THEN GO TO 80
75 GO TO 100
80 IF (X=1 OR X=4) AND NOT (X=2 OR X=3) AND NOT PEEK(16420)<2 THEN PRINT "▖";
85 GO TO 100
90 IF NOT X=4 THEN PRINT CHR$(133);
95 IF X=4 THEN GO TO 60
100 LET X=Z
105 GO TO 10
D. J. O'Connell Jr.
5 FOR J=1 TO 352
6 LET A=RND(11)
10 PRINT CHR$(A);
20 PRINT CHR$(2);CHR$(131);
30 NEXT J
John P. Filley
10 DIM A(2)
20 LET A(1)=RND(2)+1
30 LET A(2)=(RND(2)-1)*128+5-A(1)
40 LET B=128+A(1)
50 LET C=RND(25)
60 IF C=1 THEN GO TO 90
70 PRINT CHR$(A(RND(2)));
80 GO TO 50
90 PRINT CHR$(B);
100 GO TO 50Note: Type-in program listings on this website use ZMAKEBAS notation for graphics characters.


