A chess analysis tool that uses Stockfish to analyze chess games and positions. It provides a simple web interface to input PGN string or game links (chesscom and lichess) and analyzes the game using stockfish.js.
- Analyze chess games using Stockfish.
- Uses lichess's lila features to calculate game's win percentage, accuracy, estimated elo.
- Shows graph of the game with eval and mate.
- Shows the classifications of the game using this source.
- Read here how it works.
The application is built using Next.js, so you need to have Node.js installed on your machine.
- Clone the repository:
git clone https://github.com/tausiq2003/analyze-chess.git
- Navigate to the project directory:
cd analyze-chess - Install the dependencies:
npm install
- Start the development server:
npm run dev
Feel free to contribute to the project by opening issues or pull requests. Your contributions are welcome!
- Fork the repository.
- Create a new branch:
git checkout -b feature/your-feature-name
- Do your work.
4.Run the linter:
npm run lint
- Commit your changes and open a pr.
Special thanks/shoutout to:
- https://www.reddit.com/r/ComputerChess/comments/1j85i6s/how_chesscom_classifies_moves/
- https://github.com/WintrCat/freechess (Inspiration for the UI)
- https://github.com/GuillaumeSD/Chesskit (Inspiration for the estimate elo and accuracy)
Enjoy :)