DEV Community

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

Posted on

2 1

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)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay