King moves in chess
Stockfish 16.1 ยท runs in your browserPlay Kd2. White's king moves one square diagonally, from e1 to d2.
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.
The game is a draw.
Best move
The game is a draw.
The king moves one square in any direction, but never into check. Kings cannot stand next to each other. Castling is the special king-and-rook move; try a normal king move here before trying castling.
Try the moves
Choose an example, play the suggested move, then reset to compare another legal move.
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.
Read the rulesA move on the board
7k/8/8/8/8/8/8/4K3 w - - 0 1
7k/8/8/8/8/8/3K4/8 b - - 1 1
- Kd2White's king moves one square diagonally, from e1 to d2.
White's king moves one square diagonally, from e1 to d2.
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.
