by ArnoHu
See inside

Welcome to Scratch Chess - Game of Kings! To start playing, please click the white piece you want to move, then click the target field.

I focused on playing experience and AI. Considering the speed limitations of Scratch it shouldn't be too bad (it calculates up to four moves in advance, depending on selected level). Your feedback is welcome in the comments section.

Known issues:
- Allows castling through checked fields
- En-passant not supported
- Opening book is rudimentary
- "Easy" level never wins

Fixed issues:
- Feature: Move ordering via hash move (speedup)
- Feature: Isolated pawn evaluation
- Feature: Algebraic move list
- Feature: Undo move
- Feature: Import/export board data
- Bug: Queen moves too early
- Bug: Cannot move h2h4
- Feature: Opening book initial implementation
- Feature: Provide several difficulty levels
- Bug: Does not detect draws on repetitive positions
- Bug: Black move might lead to black king being checked
- Bug: Missing double pawn evaluation
- Bug: Thinks one side's check can be compensated by other side's check
- Bug: Does not consider check on castling
- Bug: Does not consider draw in move evaluation
- Bug: Applies pawn promotion too late
- Bug: Target piece not restored after invalid white move when checked

For bug reports it is helpful to attach exported board data.

Notes and Credits


Javascript version (faster, also works on tablets, smartphones):

Tutorial (in German):

Shared: 8 Mar 2017 Modified: 30 Mar 2017
Favorite this project 32
Love this project 33
Total views 545
View the remix tree  20
More projects by ArnoHu