Maze Generator and Algorithm Tester
A downloadable summer project. for Windows
This was a Summer 2022 mini-project focused on testing Search Algorithms, specifically Depth Search and Dijkstra Algorithm. It was built using Visual Studio, the C# coding language, and the MonoGame Framework.
Running the Program
Opening the program will display a grid of blocks, which is the playspace for the experiment. Left Mouse Button will place walls, Right Mouse Button will destroy walls.
Pressing the Middle Mouse Button, or Control will allow your next click to place the Start or End of the Maze.
Left Click will place the End of the maze, and Right Click will place the Start of the maze.
Generating a Maze
Press V, B, N, or M to automatically generate a maze, which is generated using a Depth Search Algorithm.
- V will generate a maze without a Start or End.
- B will generate a maze with Start at the Top-Left and End at the Bottom-Right.
- N will generate a maze with Start at Top-Center, and End at the Bottom-Center.
- M will generate a maze with Start at Left-Middle, and End at Right-Middle.
Pressing C will run the maze generation algorithm frame-by-frame, animating the maze generating process.
Solving the Maze
- Pressing 1 or 5 will attempt to solve the maze with Dijkstra's Algorithm
- Pressing 2 or 6 will attempt to solve the maze with a Depth Search Algorithm
- Pressing 3 or 7 will use Dijkstra's Algorithm, except the solution will be able to Screen-Wrap
- Pressing 4 or 8 will use a Depth Search that is able to Screen-Wrap
Pressing 5, 6, 7, or 8 will run the corresponding algorithm frame-by-frame, animating the process of the search algorithm.
Changing the Maze Size
The size of the maze playspace can be edited with the buttons on the right. Click on the Tan-Colored box to input your desired Height or Width, and press the Change Size button to change the size of the space.
The allowed size range is 3 - 299, though sizes above 7 and below 200 are more generally recommended.
Status | Released |
Platforms | Windows |
Author | Aaron Bush |
Tags | 2D, summer-project |
Leave a comment
Log in with itch.io to leave a comment.