๐Live Demo
Solves the knight's shortest path problem on a chessboard! ๐ด
This project implements Breadth first search algorithm to find the shortest path for a knight to travel between two positions on a chessboard. It demonstrates the knight's movements following the rules of chess.
- Interactive chessboard UI
- Click to place start and end positions
- Visualize the shortest path traveled by the knight
- Responsive design for desktop and mobile devices
- HTML
- CSS
- JavaScript
- Click the "Place Start" button to select the starting position on the chessboard.
- Click the "Place End" button to select the destination position on the chessboard.
- Click the "Travel" button to calculate and animate the knight's shortest path.
- Use the "Clear" button to reset the chessboard and start over.