News for hackers. Stuff that matters.
Re:Rooms and Mazes: A Procedural Dungeon Generator by applekor on Monday December 22, 2014 @06:51AM (#8782763)
Last time I needed a maze I implemented Kruskal's algorithm, which is generally useful for finding the minimum spanning tree of a graph. You just run it on a lattice graph where all edge weights are the same and you have yourself a perfect maze.

There are no comments on this comment yet.