It bothers me way more than it should that this line of code has become known as "10print". Like, 95% of BASIC oneliners out there start with "10 PRINT". It's like calling a McDonald's Super Size Big Tasty Meal With Diet Coke And A Side Salad a "Mac".<p>It should've been called 205.5+RND or something. Grmbl.
Wrote it in JS at <a href="http://10print.art" rel="nofollow">http://10print.art</a><p>Source: <a href="http://10print.art/__repl" rel="nofollow">http://10print.art/__repl</a>
In 2013, I recreated the output as a shader in ShaderToy:
<a href="https://www.shadertoy.com/view/ld23DW" rel="nofollow">https://www.shadertoy.com/view/ld23DW</a>
Nice. This brings back some great memories. I used to do a similar one-liner that alternated between white and black blocks, which created crossword-puzzle-like patterns. I'd sit across the room and squint at the display, hoping to see some sort of emergent pattern.
I also built something in JS inspired by 10print with some customisation <a href="https://jauny.github.io/10print/" rel="nofollow">https://jauny.github.io/10print/</a> :)
Love it! Brings up so much nostalgia from the days of programming on my old TRS-80. But is it really a maze? Once you start, you don't seem to get much choice of path...
That's a great read! The book inspired me to port that BASIC one-liner to Game Boy flavored assembly. Still having a Game Boy lying around? Now you have portable mazes:<p><a href="https://github.com/svendahlstrand/10-print-game-boy" rel="nofollow">https://github.com/svendahlstrand/10-print-game-boy</a>
In the same book, an old one-liner called "BURROW" from Pet Gazette:<p>1A$="[up][down][left][right]":PRINTMID$(A$,RND(.5)<i>4+1,1)"</i>[left]";:FORI=1TO30:NEXT:PRINT"[rvson][space][left]";:GOTO1