r/programmingchallenges • u/aveganzombie • Sep 09 '11
Make a perfect maze.
A perfect maze is one that has one and only one path between any two points in it (without backtracking).
There are quite a few algorithms out there for this, but trying to make your own is good fun.
28
Upvotes
View all comments
Show parent comment
2
u/[deleted] Sep 10 '11
Yep, that's the one :) Didn't use a reference implementation, though. I was too surprised by how short it was (and how quickly it generated large mazes); somehow I expected maze generation was much more complex.