A simple web application to visualize the A* pathfinding algorithm on a grid.
- Clickable grid to set start point (green), goal point (red), and walls (black).
- Run the A* algorithm to find the shortest path (blue).
- Clear the grid to start over.
- Open
index.htmlin a web browser. - Click "Set Start" and click on the grid to place the start point.
- Click "Set Goal" and click on the grid to place the goal point.
- Click "Draw Walls" and click on grid cells to toggle walls.
- Click "Run A*" to compute and display the path.
- Click "Clear" to reset the grid.
Uses A* with Manhattan distance heuristic. Assumes uniform cost of 1 per step.
index.html: Main HTML file.style.css: Stylesheet.script.js: JavaScript logic for grid and A* algorithm.
A modern web browser with JavaScript enabled.