- Loading & uploading maze from file,
- Generating maze using Prim's algorithm,
- Solving maze with DFS & BFS algorithms,
- Drawing maze representation on canvas,
- Settings for canvas drawing,
- Left click on canvas to open it in new window.
- Clone this repo to your local computer.
- Make sure that you have Node 12.14 or 14.0 installed. See instructions here.
- Open your CMD and move to "maze-solver" subfolder inside cloned repo.
- Type npm install.
- After it's done type ng serve.
- By default app will be served on http://localhost:4200/
{
"width": 8,
"height": 8,
"board": [
[2, 0, 0, 0, 1, 1, 0, 0],
[1, 0, 1, 0, 0, 0, 0, 1],
[1, 1, 1, 0, 1, 1, 0, 1],
[0, 0, 0, 0, 1, 1, 0, 1],
[0, 1, 1, 1, 0, 0, 0, 1],
[0, 1, 0, 0, 0, 1, 0, 0],
[0, 0, 0, 1, 0, 1, 1, 1],
[0, 1, 0, 0, 0, 0, 0, 3]
]
}
Board value | Meaning |
---|---|
0 | passage cell |
1 | wall cell |
2 | entrance cell |
3 | exit cell |