This project is a Pathfinding Visualizer built with HTML, CSS, and JavaScript. It allows users to visualize different pathfinding algorithms on a grid-based map.
- Interactive Grid: Click to add walls or move the start/end nodes.
- Algorithms Implemented:
- Breadth-First Search (BFS)
- Depth-First Search (DFS)
- Dijkstra's Algorithm
- Visual Feedback: Animates the traversal of the algorithms step-by-step.
project4/pathfinding-visualizer/
├── index.html # Main HTML file
├── script.js # Controls interaction and visualization
├── style.css # Styles for layout and animations
└── algorithms/
├── bfs.js # BFS implementation
├── dfs.js # DFS implementation
└── dijkstra.js # Dijkstra's algorithm
A modern web browser (Chrome, Firefox, Edge, etc.)
- Clone the repository:
git clone https://github.com/your-username/pathfinding-visualizer.git
- Navigate into the project folder:
cd pathfinding-visualizer - Open
index.htmlin your browser to start the visualizer.
Here are a few ideas to enhance the project in the future:
- Add A* Search Algorithm for more efficient pathfinding
- Mobile friendly UI improvements
- Modify generaterandommaze such that it always generates a maze that has a path from start to end