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

As demonstrated by Casey Reas at the Eyeo Festival, June 2011, Minneapolis, Minnesota, a random maze generation program in one line of Commodore 64 Basic. The program uses the PETSCII character set, specifically the line character code of 205.5, plus a random occurrence of 1 or 0, which alternates between the / and \ characters, and then repeats without causing line breaks. This small program is shown running inside of the Vice emulator on Ubuntu. The recording was made with glc and compiz.
Back to Top