AI Settings
Search Depth
Max Search Time
Checkmate!
Stalemate...
Draw
Draw by insufficient material
Draw by repetition
How it works
The engine behind Pixel Chess works much like any other traditional chess engine. Written 100% in JavaScript, the AI uses an algorithm to look a number of moves ahead and then an evaluation function to decide on the best move.
This evaluation function takes into consideration a number of factors, including the material value of pieces, positioning, mobility and more to weight a score towards a certain position to be played.
This project was coded over roughly 2-weeks so there are many improvements that could be made to the AI.
Credits
Engine programming Barr Media
With thanks to
Legal move validation Chess.js
Chessboard chessboard.js