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...
10 PRINT CHR$(205.5+RND(1)); : GOTO 10 (2012)
21–30 of 62 posts
Re: 10 PRINT CHR$(205.5+RND(1)); : GOTO 10 (2012)
#22this book reads like an article on a modern art piece.
Re: 10 PRINT CHR$(205.5+RND(1)); : GOTO 10 (2012)
#23You can recreate the magic in bash: while true; do printf "\u$((2571 + ($RANDOM & 1)))"; done
Doesn't quite work on my mac :/
Re: 10 PRINT CHR$(205.5+RND(1)); : GOTO 10 (2012)
#24Lacks randomize()
Re: 10 PRINT CHR$(205.5+RND(1)); : GOTO 10 (2012)
#25Love 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...
Of course not, there is no logic behind it, save for printing "walls" that line up with each other.
It's a (neat) graphic trick.
Re: 10 PRINT CHR$(205.5+RND(1)); : GOTO 10 (2012)
#26In 2013, I recreated the output as a shader in ShaderToy:
https://www.shadertoy.com/view/ld23DW
Re: 10 PRINT CHR$(205.5+RND(1)); : GOTO 10 (2012)
#27Lacks randomize()
I think Commodore BASIC had a more complex way of seeding the random timer: https://www.c64-wiki.com/wiki/RND
POKE 56328,0 : REM real-time clock activate with 1/10s -> clock runs ($DC08)
PRINT RND(0) : REM Random number addicted by timer and real-time clockRe: 10 PRINT CHR$(205.5+RND(1)); : GOTO 10 (2012)
#28Is there anyone here who still writes code in BASIC? If so which interpreter/compiler do you use?
Re: 10 PRINT CHR$(205.5+RND(1)); : GOTO 10 (2012)
#29This Maze Does Not Exist: an AI-powered labyrinth generator
I snickered at first but couldn't stop imagining ways to implement this. Thanks for giving me something to kickstart my brain today.
Re: 10 PRINT CHR$(205.5+RND(1)); : GOTO 10 (2012)
#30Is there anyone here who still writes code in BASIC? If so which interpreter/compiler do you use?
I do so professionally. Our 35+ year old application is written in what was once VAX BASIC running on OpenVMS (Now on Integrity and called HP BASIC).