10PRINT on All the Things
One line of code. Endless mazes. Every platform I can get my hands on.
The One-Liner That Started It All
In 1982, someone typed this into a Commodore 64:
10 PRINT CHR$(205.5+RND(1)); : GOTO 10
And a legend was born. This simple program randomly prints diagonal characters, creating an infinite maze pattern that fills the screen. It’s become the “Hello World” of generative art and a rite of passage for retro computing enthusiasts.
The original uses PETSCII characters 205 and 206 (diagonal lines that connect perfectly). The trick? Adding 0.5 to 205 and letting BASIC’s integer conversion randomly round up or down. Elegant. Minimal. Perfect.
The Quest
My mission: implement 10PRINT on every platform I can find. Vintage computers, graphing calculators, fantasy consoles, modern languages. If it computes, it can maze.
Each platform brings its own challenges. No PETSCII characters? Use ASCII slashes. No text mode? Draw lines. Only a 7-segment LED display? Get creative.
Vintage Computers
The original playground for 10PRINT. Each machine has its own quirks, character sets, and limitations.
- 40 years on, this is still the best maze algorithm - Where it all began: the Commodore 64
- 10 PRINT on the Rockwell AIM 65 - Thermal printer output on a single-board computer
- 10 Print on PICO-8 - Fantasy console with Lo-Res charm
- 10 PRINT for the KIM-1 - Scrolling maze on a 7-segment LED display
- 10 PRINT on the Apple II - Wozniak’s machine gets the maze
Calculators
Who says calculators are just for math? These pocket computers can maze with the best of them.
- 10 Print on the TI-92 - Texas Instruments graphing calculator
- 10 PRINT on the HP-42s - RPN stack-based maze generation
Modern Languages
How fast can 10PRINT run on modern hardware? Let’s find out.
- 10 PRINT in Rust vs C - Performance showdown between systems languages
What’s Next?
The quest continues. On deck: ZX81, BBC Micro, and who knows what else. Got a machine you’d like to see running 10PRINT? Let me know.
All 10PRINT Posts
-
10 PRINT on the Apple II
January 15, 2026
-
10 PRINT for the KIM-1
May 16, 2025
-
10PRINT and 100 Doors on the PicoCalc from Clockwork Pi
March 26, 2025
-
PICO-8 100 Doors Problem
January 16, 2025
-
10 Print on PICO-8
January 10, 2025
-
10 PRINT in Rust vs C
July 30, 2024
-
wAx the VIC-20
April 19, 2024
-
10 PRINT on the HP-42s
April 5, 2024
-
10 Print on the TI-92
November 30, 2023
-
10 PRINT on the Rockwell AIM 65
June 28, 2023