Skip to main content
Home▸ Forums▸ 10 PRINT CHR$(205.5+RND(1)); : GOTO 10 — #1▸ 10 PRINT CHR$(205.5+RND(1)); : GOTO 10 — #1
Post #1 by krye
Post
I'm sure by now everyone has seen this floating around the internet:

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

This single line of code on a C64 produces a labyrinth on the screen using a random / or \.

maze.png

I wanted to run it on my //c but I just get random Ms and Ns.

As it turns out, the Commodore uses the PETSCII character set. Anyone know how to "port" this over to Apple BASIC?

mp.ls