Uncle Troy Presents‎ > ‎UTP News‎ > ‎

10 PRINT - Create Endless Maze with One Line of BASIC

posted Jun 26, 2015, 7:29 AM by Troy Cheek   [ updated Jun 26, 2015, 7:30 AM ]

10 PRINT - Create Endless Maze with One Line of BASIC

There was a book that came out a while ago called 10 PRINT CHR$(205.5+RND(1)); : GOTO 10 (Software Studies).  The book title, when entered into a Commodore 64, it creates the illusion of an endless unsolvable maze.  The maze it generates is featured on the cover of the book, and I'm told it's the most interesting thing about it.  I thought the characters looked familiar.  I checked and found that the old Atari 8 bit family (400 800 130 XE etc) had the same characters, so I altered the program.

10 PRINT CHR$(6+RND(1));:GOTO 10

That's all you need.  To save you from having to dig up your old Atari and try it, I fired up an emulator (Altirra rules!) and recorded this demo for you.  It's better if proceeded by POKE 82,0 but that's probably considered cheating.
Comments