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

codeguppy

Adrian

Posted on August 27, 2020

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

đź’– đź’Ş đź™… đźš©
codeguppy
Adrian

Posted on August 27, 2020

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related