Chess Bot
- 2 Devlogs
- 7 Total hours
I am building a chess bot that uses an algorithm to find a good move to play. the board and the rules are managed by chessboard.js and chess.js libraries
I am building a chess bot that uses an algorithm to find a good move to play. the board and the rules are managed by chessboard.js and chess.js libraries
I finally coding a basic bot that plays against you. This plays legal moves, and has a move depth of 3. I implemented minimax and piece square tables, so it would play better moves quickly.
There is also an option to export the game as a pgn or fen, so you can evaluate the chess bot as well as your accuracy.
currently, even with move depth 3, it is slow, especially when there are a lot of moves it has to sort through, and I want to make it so the algorithm works faster, even on lower end devices. Also, the algorithm is pretty bad, (it got about 75% accuracy on chess.com analysis) so I also plan on improving it in the future.
Devlog #1
My first goal in building a chess bot is to code the board and defining the rules. I used chessboard.js to make the board, and I will later implement rules, so both sides can only play legal moves, and also castling, en passant, etc.