Resign
Reset
Flip
AI
Thinking...

AI Settings

Search Depth

Max Search Time

Done
Restart
X

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.

X

Credits

Engine programming Barr Media

With thanks to

Legal move validation Chess.js

Chessboard chessboard.js