Awhile back, I discussed the famous Commodore 10 PRINT one-line program, inspired by a YouTube video from 8-Bit Show and Tell.
Although most computers could do the same program in BASIC, unless your system had those wonderful diagonal graphics characters, the result could be a bit lacking.
On the CoCo, using the 2×2 block graphics characters was not an improvement, either.
But perhaps if you used a 4×4 block it might look more like a maze. This allows 16 maze characters across by 8 down (versus a Commodore VIC-20 with 22×23).
Well, it works, but takes up much more than one line. How small can you make it? Here is my version:
0 ' BIGMAZE.BAS 10 C=2 20 B$=CHR$(128) 30 L$=CHR$(128+16*C+9) 40 R$=CHR$(128+16*C+6) 50 M$(0,0)=B$+R$:M$(0,1)=R$+B$ 60 M$(1,0)=L$+B$:M$(1,1)=B$+L$ 70 P=512-32*2 80 M=RND(2)-1 90 PRINT@P,M$(M,0);:PRINT@P+32,M$(M,1); 100 P=P+2:IF P>479 THEN PRINT:GOTO 70 110 GOTO 80
Make it smaller. Make it faster. Share your work. And someone tell Jim Gerrie since he probably has already done this…
Until next time…