Close Show/hide page

Maze Generation Algorithm

A couple months ago, while I was still a full-time student, which did not last very long, but that’s another story, I created a maze generator as a way to learn some C++, now posted here just for the fun of it.

I started with a description of the algorithm found on Wikipedia, worked it out in Processing (with 2D, 3D, and isometric views added as a bonus), and then ported it to C++ using openFrameworks for the basic display action.

Presumably it could be used as the start of a game-like concept, if so inclined.

- Processing (source + Win/Mac executables)
- C++/oF (source + Windows executable)

2 Responses to “Maze Generation Algorithm”

  1. felix says:

    very cool.

  2. Adam says:

    Very nice! The videos are done really well. A 3D version would be cool! But probably a bit tricky to render, and still tell whats going on. I don’t mean just layers of 2D mazes, I mean a cube that you start at one corner, and finish at the opposite. Moving in all directions, and twisting around itself. I don’t even what to think how it could be done.

Leave a Reply