Personal favourites maze generating algorithms implemented by python module pygame: DFS, Randomized Prim's, Eller's, Hunt-and-Kill, Binary Tree, Randomized Kruskal's, Sidewinder and Aldous-Broder algorithm.
All of these algorithms create "perfect" mazes. This means that between two arbitrary points from any maze, there is exactly one path connecting them.
Background Music by Unicorn Heads: A New Orleans Crawfish Boil
Credits for the information on the algorithms:
weblog.jamisbu...
4 окт 2024