Hacker Times
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
d13
on Jan 31, 2016
|
parent
|
context
|
favorite
| on:
Ask HN: What's the most elegant piece of code you'...
Commodore 64's Basic random maze generator:
10 PRINT CHR$(205.5+RND(1)); : GOTO 10
https://www.youtube.com/watch?v=m9joBLOZVEo
pkaye
on Jan 31, 2016
|
next
[–]
Somebody managed to write a whole book about this random maze generator.
http://10print.org/
jibalt
on Jan 31, 2016
|
parent
|
next
[–]
That book is remarkable!
agildehaus
on Jan 31, 2016
|
prev
|
next
[–]
It prints either \ or /, not sure how amazing that is. It also isn't a maze, considering it's unlikely any of those paths leads to an exit.
zug_zug
on Feb 1, 2016
|
parent
|
next
[–]
Fair point. Making a a traditional 1-solution maze in 1 line is qualitatively more impressive than making a complex pattern of passages in 1 line.
jibalt
on Jan 31, 2016
|
parent
|
prev
|
next
[–]
I think you have quite missed the point.
austinjp
on Jan 31, 2016
|
prev
[–]
I've got to say, that is truly wonderful.
Consider applying for YC's Summer 2026 batch! Applications are open till May 4
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
10 PRINT CHR$(205.5+RND(1)); : GOTO 10
https://www.youtube.com/watch?v=m9joBLOZVEo