Welcome to my Maze Algorithm. I challenged myself to build an algorithm that could build randomly generated mazes.

This is how it works.

My algorithm first examines four potential moves. It examines moving up, down, left and right. It is looking for two things:
  • Are each of these four potential moves are on the board?
  • Has this potential location of the board been visited before?
  • Based on these two conditions the algorithm determines whether any of these four moves are 'valid' and pushes them to an array.
    mystery