Provides stockfish best move analysis during gameplay (vs the computer) on chess.com or lichess with Firefox browser
Go to installing/usage
The product consists of 2 components:
- asks the stockfish server for the best move based on the current game state and updates whenever opponent makes a move happens
- displays the stockfish evaluation on the web page with highlights on the board (chess.com/lichess)
- click 'refresh' button if the game gets out of sync
(OUTDATED)
- has a ready stockfish engine and functions for analysing best moves based on FEN string
- POST /endpoint for getting stockfish best move analysis based on chess FEN string- Content-Type: text/plainrequest body should be the FEN string to analyze
 
Request
POST http://localhost:8080/
Content-Type: text/plain
rnbqkbnr/pp1ppppp/8/2p5/8/3P4/PPP1PPPP/RNBQKBNR w KQkq c6 0 2
Response
bestmove e2e4 ponder b8c6
You need to have these tools:
- git
- node.js 16+
- firefox
- clone the repo: git clone [email protected]:haug1/chess-bot.git
- install stockfish server
- go to backend/directory in terminal
- install the dependencies: npm i
- run the server: npm start(must be running for the browser extension to work)
 
- go to 
- install the firefox extension
- go to about:debugging
- click This Firefox
- click Load Temporary Add-on...
- choose the frontend/bin/manifest.jsonfile
 
- go to 
- go to chess.com/lichess and play vs the computer
- click 'refresh' if game gets out of sync (shouldn't really happen)
