Chess endgames
Stockfish 16.1 · runs in your browserPlay a8=Q+. The pawn reaches a8 and becomes a queen, giving check.
Play on the board, or use Type a move below it.
Play a move by typing it, like e4, Nf3 or e7e8q, then press Enter.
Commentary
Move a piece, paste a position, or press the button.
Best move
An endgame has fewer pieces, making king activity, pawn promotion and precise mating patterns especially visible. Try promoting a pawn, taking the opposition and giving queen checkmate. Each example is a specific legal position you can reset and explore.
Try the moves
Choose an example, play the suggested move, then reset to compare another legal move.
King and pawn endgames
Try the promotion and opposition examples. Track the side to move and legal king squares before advancing a pawn.
Rules and examples
The board positions are original teaching examples. Rule references and further practice are linked below.
Rules: FIDE Laws of Chess, effective 1 January 2023. https://handbook.fide.com/chapter/E012023
Rule replay: python-chess 1.11.2 (GPL-3.0-or-later). The shared browser engine retains its Stockfish GPL-3.0 notice. No engine score is claimed by these demonstrations.
See the referenceA move on the board
7k/P7/8/8/8/8/8/4K3 w - - 0 1
Q6k/8/8/8/8/8/8/4K3 b - - 0 1
- a8=Q+The pawn reaches a8 and becomes a queen, giving check.
The pawn reaches a8 and becomes a queen, giving check.
Original teaching example replayed with python-chess 1.11.2, 2026-10-18.
Analysis runs on Stockfish 16.1 in your browser, compiled to WebAssembly by stockfish.js. Stockfish is free software under the GNU General Public License v3; its source code is on GitHub.
