Search found 3 matches

by AyreGuitar
Thu Sep 23, 2021 1:32 pm
Forum: ZX BASIC
Topic: Tricks in BASIC
Replies: 54
Views: 114166

Re: Tricks in BASIC

Sorry, I was using the same convention I'd seen on this thread for using hexadecimal numbers for graphics characters, so "@80" is CHR$(128) Here's a screenshot running on JSZeddy emulator for the actual listing: MazeOneliner.png The graphics string is the same as the original multi line version earl...
by AyreGuitar
Wed Sep 22, 2021 8:06 pm
Forum: ZX BASIC
Topic: Tricks in BASIC
Replies: 54
Views: 114166

Re: Tricks in BASIC

Here's a new version of the maze generator simulator in 5 BASIC lines :-) InfiMaze2.png Enjoy! Regards, Shaun. It's possible to squeeze the maze generator into just one line using some USR calls in a PRINT statement like this: 10 PRINT "@80@00@01@02@87@04@05@83@03@85@81@82@07@84@06@86"(RND*15+NOT P...