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.
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
https://cs.wellesley.edu/~pmwh/papers-fcpcg/FDG2021-Mawhorte...
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.
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?
I also liked the idea of finding the two furthest-apart points within the maze to use as start and end points. My app just picks two opposite corners. Completely arbitrary. I was never satisfied with it. Yours is much better.