An animated Maze Generator and Pathfinding Solver built with C++ and SFML 3.0, featuring recursive backtracking generation and A* algorithm visualization.
- Recursive Backtracking — maze generated step-by-step with animated frontier cell
- A Pathfinding* — optimal path found with full exploration visualization
- Color-coded Display — teal for A* explored cells, rainbow gradient for the final path
- 60×40 Grid — 2400 cells, genuinely complex mazes every run
- Fast Mode — instant generation and solving with F key
- Infinite Regeneration — new random maze every time with Space
- C++17
- SFML 3.0.2
- CMake + MinGW
- Download
MazeGenerator-v1.0-Windows.zipfrom Releases - Extract all files to the same folder
- Run
MazeGenerator.exe
Requires Windows. No install needed — just extract and run.
| Key | Action |
|---|---|
| Space | Generate new maze |
| Enter | Solve with A* algorithm |
| F | Toggle fast mode (instant) |
| R | Reset |
| Esc | Quit |
git clone https://github.com/snehal-thombare08/Maze-Generator-Solver.git
cd Maze-Generator-Solver
mkdir build && cd build
cmake .. -DCMAKE_TOOLCHAIN_FILE=C:/vcpkg/scripts/buildsystems/vcpkg.cmake -G "MinGW Makefiles"
mingw32-makeMaze-Generator-Solver/
├── src/
│ └── main.cpp
├── CMakeLists.txt
└── README.md
Part of a C++ graphics & simulation portfolio built with SFML 3.0.
