July 2015
Intermediate to advanced
286 pages
6h 31m
English
Initialize a set with an arbitrary cell. Randomly choose a cell from the set. If it has no unvisited neighbors, remove it from the set. Otherwise, choose one of the cell’s unvisited neighbors, link the two together, and add the neighbor to the set. Repeat until the set is empty.

A strong radial texture centered on the starting cell. Mazes tend to have more dead ends than other algorithms, and shorter paths. Behaves identically to Prim’s (True) if that algorithm is given a grid where every cell is weighted the same.
Read now
Unlock full access