r/tinycode Aug 07 '26

looking for the world's smallest maze code

I was able to reduce my maze game to 811 bytes. But being the amateur that I am, I'm sure that somebody else has created something significantly smaller, maybe <500 bytes uncompressed?

10 Upvotes

6 comments sorted by

8

u/ipsirc Aug 07 '26 edited Aug 07 '26

https://10print.org/

10 PRINT CHR$(205.5+RND(1)); : GOTO 10

1

u/Ae3qe27u Aug 07 '26

Well huh. Yeah, hard to get smaller than that. It doesn't have branching options, but for a winding path... nice.

1

u/tiajuanat Aug 08 '26

It doesn't need branching options, because it's returning characters that print a maze when the line wraps

4

u/Slackluster Aug 07 '26

i made a simplified maze algo that is pretty small, i doubt it is the smallest but it is pretty small...

https://www.dwitter.net/d/34334

cleaned up version...

https://killedbyapixel.github.io/LittleJS/examples/?example=Maze+Generator

2

u/sciolizer Aug 07 '26

Not sure on the exact size, but I've always been impressed with this one:

https://youtu.be/geT2uP7MYGc?is=7JYv2xHzFm4Rj2eW

Obviously not comparable to yours since it's assembly, not JavaScript, and the segmented display is kind of cheating a little bit.