hyperman1 3 minutes ago

One problem with all these maze algorithms is how they are completely random.

When a human creates a maze, he might start with the solution, then add a few false paths that end near the finish but just fail at the last step. Maybe a few loops are added, or a picture or special features are integrated. Only at the very end, the leftovers are filled in with random data. The process is a design, not a random generation.

Are there any algorithms available that do similar things?

spencerflem 9 hours ago

My favorite maze algorithm is this one: https://cs.wellesley.edu/~pmwh/papers-fcpcg/presentation/sli...

Live demo at: https://cs.wellesley.edu/~pmwh/hydrodendron/

It allows generating an infinite maze looking at any arbitrary area of the maze, without any loops, using fractal coordinates

vintagedave 10 hours ago

Remarkably simple with great results. I recommend checking out the author’s book Mazes for Programmers: one of the best programming books I’ve ever read. Incredibly clearly explained, and very interesting, which is an excellent combination.

  • MortyWaves an hour ago

    I was about to comment the same. Very good book, reading it and implementing its mazes with my own features on top has been my long term casual project for a while.

    I posted some examples on Mastodon. I added several features, one being running the algorithms “by step” so that not only can it be easier to debug but it can be animated too.

    https://mastodon.social/@lloydjatkinson/media

hinkley 10 hours ago

Reminds me a little of Hilbert curves.

It would be kind of cool to generate an 'infinite' maze this way by starting the process and only recursing to max depth only for the nodes closest to the exits.