9 lines
726 B
Markdown
9 lines
726 B
Markdown
# Chess — tips for reviewers and developers
|
|||
|
|
|
||
|
|
- Check: moves leaving your own king in check are rejected (answer by moving the king, capturing, or blocking);
|
||
|
|
checkmate (no legal reply) wins, stalemate (no legal move while safe) draws. No pin filtering beyond this.
|
||
|
|
- Special moves: castling (rights decay on king/rook moves and corner-rook captures, no castling through check),
|
||
|
|
en passant (one-move window after a double step), promotion (choice q/r/b/n in the move command, queen default for bots/timeouts).
|
||
|
|
- Client orients the board around your colour (white: a8 top-left; black: h1 top-left); a1 is always dark.
|
||
|
|
- Server is deterministic (time only via ctx.now, randomness via ctx.rng); bots pick random legal moves.
|