Quantcast
Channel: stardot.org.uk
Viewing all articles
Browse latest Browse all 3104

8-bit acorn software: other • Re: High-resolution "maze" one-liner

$
0
0
I recently wrote a program on the ZX Spectrum in BASIC that is in the spirit of the original 'maze' one-liner, so here it is in BBC BASIC:

Code:

1VDU23,224,1,50,74,68,32,16,96,128,23,225,1,6,8,4,34,82,76,128,23,226,128,76,82,34,4,8,6,1,23,227,128,96,16,32,68,74,50,1:O%=0:MODE 4:I%=RND(-TIME):REPEAT:FORI%=0TO39:VDU223+RND(2)+O%:O%=2-O%:NEXTI%:O%=2-O%:UNTIL FALSE
I'll leave it up to you to discover what it draws...

Statistics: Posted by SimonSideburns — Sun Aug 18, 2024 2:29 pm



Viewing all articles
Browse latest Browse all 3104

Trending Articles