Algorithm simulation · 2021
Maze Generator & Solver
A C++ program that builds a maze in front of you with one of five algorithms, then solves it.
The project
I wrote this program to understand how a maze is built. It generates one step by step with Prim, Kruskal, Hunt and Kill, depth-first search or Aldous-Broder, then solves it with a breadth-first search.
The display uses SFML. Options are set on the command line: algorithm, speed, cell size, FPS and fullscreen. A left click starts a new generation.
Next project
Pacman