Recursive Backtracking, Animated

A couple of weeks ago I described the recursive backtracking algorithm for generating mazes. Here’s an animation of the generation of a maze using recursive backtracking. As you can see, the maze begins as an array of unconnected little rooms, and grows room by room from one starting room.

AnimatedMaze

5 thoughts on “Recursive Backtracking, Animated

  1. This is way cool! Don’t understand it, but it sure is fun to watch! Now if the final product would only stay for more than a split second before it jumps to the next maze…

    Like

Comments are closed.