r/programming • u/kraakf • Jan 28 '15
Maze Generation In Thirteen Bytes
http://trixter.oldskool.org/2012/12/17/maze-generation-in-thirteen-bytes/7
u/jms_nh Jan 28 '15
huh, go figure. I actually had a C64 and a Star Micronics dot matrix printer, and remember in 1988 I used to print out pseudomazes of this type using random forward and backslashes. (It was during the Bush/Dukakis election, and I was bored to death in 10th grade history class.) Can't remember where I got the idea, it must have been as a result of just messing around with the C64 graphics characters.
9
Jan 28 '15
Holy shit. They reduced it to 10 bytes. That's some impressive code golf.
4
u/_argoplix Jan 29 '15
doing it in javascript, on a multi-gigabyte browser, on a multi-gigabyte window system, if probably at the complete opposite end of the spectrum. Sort of like code chicken, or something.
5
u/orbitex_ Jan 28 '15
This is really cool. This is what I got. It obviously doesn't count as a real maze as you can't guarantee a good path and there's no starting or ending point.
It's amazing what you can do with only ten bytes.
4
u/kraakf Jan 28 '15
Oldskool stuff - miss those days when optimization of these sort of things was a must to do.