Schaken
Volledig schaken op een 8×8-bord: rokade, en passant, promotie, schaak en mat. De zetgenerator is getoetst aan standaard perft-tellingen.
2 players
Full chess: castling, en passant, promotion, check, checkmate and stalemate, the fifty-move rule, threefold repetition and insufficient material. Move generation lives in `functions` and uses the board functions (ray, leap, neighbours); the perft counts match the known values.
Draws by repetition and by the fifty-move rule happen automatically (no claim needed). For repetition, the en passant chance counts whenever an enemy pawn stands next to the pawn that just moved two squares (not whether that capture is also legal). No clock, no draw offers, no resigning.
Doel en einde van het spel
- Gewonnen the side to move has no move and is in check
- Gelijkspel the side to move has no move and is not in check
- Gelijkspel nobody can checkmate any more
- Gelijkspel the same position for the third time
- Gelijkspel fifty moves by each side without a capture or pawn move
Zo verloopt het spel
Volg het spoor van boven naar beneden. ↻ herhaalt, een zijspoor is een splitsing; onder elke stap: wat je daar beslist. Tik op een stap voor wat je daar beslist.
Alle stappen in woorden
- Match
- The side to move makes a move
Mag als there is a legal move.
- Kies legal moves
- The side to move makes a move
Onder de motorkap
Deze regels komen rechtstreeks uit het model van het spel: dezelfde gegevens waarmee de engine speelt. Voor de precieze expressies, het regeldiagram en de bron van het model: