A dynamic web application that visualizes pathfinding algorithms in action. Built with React 18, this interactive tool helps understand how different pathfinding algorithms work by providing real-time visualization of the algorithm's process.
- Interactive Grid: Click and drag to create walls and obstacles
- Real-time Visualization: Watch algorithms find the shortest path step by step
- Dijkstra's Algorithm: Implements the famous weighted pathfinding algorithm
- Responsive Design: Clean and intuitive user interface
- Modern Tech Stack: Built with React 18 and optimized for performance
- React 18 - Modern React with latest features
- JavaScript (ES6+) - Core programming language
- CSS3 - Styling and animations
- React Scripts 5.0 - Build and development tools
- Node.js (v14 or higher)
- npm or yarn package manager
- Clone the repository:
git clone https://github.com/GitMasterJatin/Path-Finder-.git
cd Path-Finder-- Install dependencies:
npm install- Start the development server:
npm start- Open http://localhost:3000 in your browser
src/
├── PathfindingVisualizer/ # Main visualizer component
│ ├── PathfindingVisualizer.jsx
│ ├── PathfindingVisualizer.css
│ └── Node/ # Grid node component
├── algorithms/ # Pathfinding algorithms
│ └── dijkstra.js # Dijkstra's algorithm implementation
├── App.js # Root component
└── index.js # Application entry point
- The grid represents a 2D space where pathfinding occurs
- Click on cells to create walls/obstacles
- Set start and end points for the path
- Click "Visualize" to watch the algorithm find the shortest path
- The algorithm explores nodes and highlights the final path
Runs the app in development mode at http://localhost:3000
Launches the test runner in interactive watch mode
Builds the app for production to the build folder
- Implementation of pathfinding algorithms
- React component architecture and state management
- Real-time UI updates and animations
- Grid-based data structure manipulation
- Performance optimization for visual rendering
This is a personal project, but suggestions and feedback are welcome!
This project is open source and available under the MIT License.
Jatin Sharma - GitMasterJatin
⭐ Star this repository if you find it helpful!