3 ms·
I see tons of paths in this maze, not just one. The same code that generates the walls inside the maze must also generate the walls on the edge of the maze - y
by ars 13y ago
I see tons of paths in this maze, not just one.
The same code that generates the walls inside the maze must also generate the walls on the edge of the maze - you can't just put a solid border and declare the corners the start and end.
(Well you can, but then there's not a single path.)
- lkfj43qlkfj34l 13y agoThere's only one path between any two points. Here's a script to verify that the result of the maze generator is indeed a tree (and thus has no redundant paths). https://gist.github.com/anonymous/4bbac3930e4a91a7c09f https://gist.github.com/anonymous/4bbac3930e4a91a7c09f
- TophWells 13y agoThe white lines are supposed to be the paths, not the walls.