Skip to content

itzrv19/Path-Visualizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

6 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿงญ Path Visualizer

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.


๐ŸŒ Live Demo

๐Ÿ”— Path Visualizer (GitHub Pages)
https://itzrv19.github.io/Path-Visualizer/


๐Ÿš€ Features

  • ๐Ÿ“Š 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)

๐Ÿง  Algorithms Implemented

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

๐Ÿ› ๏ธ Tech Stack

  • HTML5 โ€“ Structure
  • CSS3 โ€“ Styling & animations
  • JavaScript (ES6) โ€“ Logic & algorithms

๐Ÿ“‚ Project Structure

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

๐ŸŽฎ How to Use

  1. Select a pathfinding algorithm
  2. Place:
    • ๐ŸŸข Start node
    • ๐Ÿ”ด End node
    • โฌ› Walls / obstacles
  3. Click Visualize
  4. Watch how the algorithm explores the grid step by step
  5. Reset the grid and try another algorithm

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published