DEV Community

Cover image for Implement in a modern language: 10 PRINT CHR$(205.5+RND(1)); : GOTO 10
Adrian
Adrian

Posted on

Implement in a modern language: 10 PRINT CHR$(205.5+RND(1)); : GOTO 10

A very popular 1 liner program for Commodore 64 was the one from the title. You can read more about it here: https://10print.org/

It basically printed randomly the / and \ characters. Although the program was very simple the effect looked as a very detailed maze.

The challenge I'm proposing you is to implement this effect in a modern programming language (JavaScript, Python, Lua, C++, C#, Java, Swift, etc.). Your choice!

P.S. For reference please check this JavaScript implementation:
https://codeguppy.com/code.html?t=commodore_patterns

Top comments (0)