An interactive Pathfinding Algorithm Visualizer built using HTML, CSS, and JavaScript.
This project helps users understand how different graph traversal and shortest-path algorithms work step by step through real-time visual animations on a grid.
๐ Path Visualizer (GitHub Pages)
https://itzrv19.github.io/Path-Visualizer/
- ๐ Visualizes popular pathfinding algorithms
- ๐ฆ Interactive grid with start & end nodes
- โ Wall/obstacle creation
- ๐๏ธ Step-by-step animation
- โก Real-time comparison of algorithms
- ๐ Runs fully in the browser (no backend)
| Algorithm | Type | Guarantees Shortest Path | Notes |
|---|---|---|---|
| BFS (Breadth-First Search) | Unweighted | โ Yes | Explores level by level |
| DFS (Depth-First Search) | Unweighted | โ No | Faster but not optimal |
| Dijkstraโs Algorithm | Weighted | โ Yes | Classic shortest path |
| A* (A-Star) | Heuristic-based | โ Yes | Faster using heuristics |
- HTML5 โ Structure
- CSS3 โ Styling & animations
- JavaScript (ES6) โ Logic & algorithms
Path-Visualizer-main/
โ
โโโ index.html
โ
โโโ script/
โ โโโ bfs.js
โ โโโ dfs.js
โ โโโ dijkstra.js
โ โโโ astar.js
โ โโโ dist/
โ โโโ bfs.dev.js
โ โโโ dfs.dev.js
โ โโโ dijkstra.dev.js
โ โโโ astar.dev.js
โ
โโโ assests/
โ โโโ images/
โ โโโ img1.webp
โ โโโ img2.webp
โ โโโ img3.webp
โ โโโ img4.webp
โ โโโ img5.webp
โ
โโโ README.md
- Select a pathfinding algorithm
- Place:
- ๐ข Start node
- ๐ด End node
- โฌ Walls / obstacles
- Click Visualize
- Watch how the algorithm explores the grid step by step
- Reset the grid and try another algorithm