This is a python project to create and solve a maze with various algorithms
These project contains two modules:
MazeGenerator.py
contains maze generation algorithms, while
MazeSolver.py
contains maze solving algorithms
matplotlib
, matplotlib.pyplot
, numpy
, and random
MazeGenerator.py
can be directly imported. Every algorithm will return a 2-d array storing the information of the maze generated.
MazeSolver.py
is best used along with MazeGenerator.py
. The return value from maze generation algorithms can be used as the parameter data
.
- Wilson's algorithm
- Kruskal's algorithm
- Prim's algorithm
- Dijkstra's algorithm
- A* search algorithm
- Cost: Manhattan distance
- Cost: BFS + back propagation
- Dead-end filling algorithm
- Wall following algorithm
- Left-hand rule
- Right-hand rule
- Depth-first search algorithm (recursive backtracker)
- Recursive division algorithm
- Aldous-Broder algorithm
- Tessellation algorithm
- Flood fill algorithm