Pathfinding Visualizer is an interactive web application designed to help you visualize and understand common pathfinding algorithms such as Dijkstra's, Breadth-First Search, Depth-First Search, and A-star. You can create custom mazes and obstacles to see how these algorithms behave in various scenarios. Built using React.js, TypeScript, CSS, and HTML, this tool is perfect for beginners and experts alike to gain deeper insights into pathfinding algorithms.
- Interactive visualization of popular pathfinding algorithms:
- Dijkstra's
- Breadth-First Search
- Depth-First Search
- A-star
- Ability to create custom mazes and obstacles
- Intuitive user interface for ease of use
- Responsive design for both desktop and mobile devices
To run this project, you need to have the following installed on your machine:
- Node.js (version 14.x.x or higher)
- NPM (version 6.x.x or higher)
- Clone the repository:
git clone https://github.com/your-username/pathfinding-visualizer.git
- Change to the project directory:
cd pathfinding-visualizer
- Install dependencies:
npm install
- Run the application in development mode:
npm start
The application should now be running on http://localhost:3000/
. You can open this URL in your preferred web browser to use the Pathfinding Visualizer.
- Select a pathfinding algorithm from the dropdown menu.
- Click and drag on the grid to create obstacles or mazes.
- Press the "Visualize" button to start the visualization of the selected algorithm.
- Press the "Clear Board" button to reset the grid and try another scenario.