An interactive maze generator and solver built with OpenFrameworks. Create, visualize, and solve mazes in real-time with multiple generation algorithms and visualization options.
- Interactive maze generation and solving
- Multiple generation algorithms:
- Recursive Backtracker
- Prim's Algorithm
- Kruskal's Algorithm
- Real-time animation of maze generation and solution
- 2D and 3D visualization modes
- Adjustable maze cell size
- Dynamic maze resizing based on window size
- GUI controls for all features
- Automatic path finding with animated solution display
- Space: Generate new maze instantly
- G: Toggle animated generation
- F: Toggle animated solution
- S: Toggle solution visibility
- H: Toggle GUI visibility
- +/-: Increase/decrease cell size
- Download and install OpenFrameworks
- Clone this repository into your OpenFrameworks apps folder:
cd openFrameworks/apps/myApps git clone https://github.com/vessovit/MazeGenerator.git - Use the OpenFrameworks Project Generator to create the project files
- Add the required addon: ofxGui
- Open the Xcode project in
MazeGenerator.xcodeproj - Build and run the project in Xcode
make
make RunRelease- Open the Visual Studio solution
- Build and run the project
- OpenFrameworks 0.12.0 or later
- ofxGui addon
This project is licensed under the MIT License - see the LICENSE file for details.
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
- Vesso Vit - Initial work
- OpenFrameworks community
- Maze generation algorithms based on research by Jamis Buck
