A maze solver written in Java. The goal of this project was to implement various search algorithms. For now they include: A*, Breadth First Search and Depth First Search.
I will try to implement more algorithms in the future.
- download the project
- compile the src folder
- from the src directory type java MazeSolver ../mazes/"maze-file-name"
- if you want to run only individual algorithms, add a second parameter:
d - Depth First Search
b - Breadth First Search
a - A* Search
For example:
java MazeSolver ../mazes/"maze-file-name" bd - runs only the BFS and DFS search
I have included a couple of maze examples in the mazes folder, however, feel free to add your own mazes.
Use this website to generate your own mazes and use these parameters:
- path width: 1
- wall width: 1
- wall color: 0 0 0
- path color: 255 255 255