Counter at zero
- Input
- 8/8/8/8/3k4/8/8/R3K3 w - - 0 1
- Expected output
- win, DTZ 27
King and rook against king is a win with DTM 27 plies (14 moves). The counter is 0, and there are 100 plies of slack: plenty.
Chess Endgame Tablebase (up to 7 Pieces)
fifty move rule chess dtz cursed win
A position can be won in theory and drawn in practice, because the 50-move rule declares a draw before the mate arrives. The tablebase takes that into account: with a high counter, a win becomes a "cursed win". The tool opens an example so you can see the change.
King and rook against king is a win with DTM 27 plies (14 moves). The counter is 0, and there are 100 plies of slack: plenty.
85 + 27 = 112, above 100: the win is cursed. Only 15 plies are left until the draw, and the DTZ asks for 27.
It is a database with the perfect result of every position with few pieces. For each position it says whether the side to move wins, draws or loses, and in how many plies. The Syzygy tablebase this tool queries covers up to 7 pieces, kings included.
No. A ply is one side's move, and a full move has two plies. The 50-move rule counts 50 full moves, that is, 100 plies.
Any capture or pawn move. That is why DTZ points to the next of those moves under perfect play. A check, a piece shuffle or a king move reset nothing.
Play both sides and see the perfect result of every position and every move.
Use the arrow keys to move between squares. Enter or space selects a piece, then the destination square. Escape cancels.
Set up a valid position to query.
Pick an endgame to analyze with the tablebase or to practice against perfect play.
Basic mates and the 50-move rule
King and queen against king
Win
The simplest mate. Use the queen to corner the enemy king and bring your own king to help. With perfect play, mate comes in at most 10 moves. Beware of stalemate, which is a draw.
King and rook against king
Win
Cut the enemy king off with the rook and advance your king until it faces the enemy king, in opposition, to give check on the edge. With perfect play, mate comes in at most 16 moves.
50-move rule: a cursed win
Cursed win
King and rook against king, but with the counter at 85 plies. The mate needs more moves before a capture or pawn move than are left until the draw, and the tablebase marks the position as a cursed win. Reset the counter in Set up and compare.
King and pawn
King and pawn: key squares
Win
When your king reaches a key square in front of the pawn, promotion is guaranteed even if the opponent moves first. Here the white king on e6 stands in front of the pawn on e5. Switch the side to move in Set up and see it wins both ways.
King and pawn: opposition
Win for the side not to move
Kings face to face with one square between: whoever has to move gives ground. With Black to move White wins; with White to move it is a draw (switch the side to move in Set up and check). Triangulation is the maneuver of losing a tempo with the king to hand the obligation to move to the opponent.
Rook pawn: a draw
Draw
With the pawn on the a or h file, the enemy king reaches the promotion corner and has no squares to attack, which draws (or stalemates). In practice, defend as Black.
Rook endgames
Lucena position
Win
The most famous rook endgame: pawn on the 7th rank and your king in front of it, cut off by the enemy rook. The technique is building a bridge: take the rook to the 4th rank and use it as a shield against the checks, so the king can step out and promote.
Philidor position
Draw
The classic drawing defense: the rook stays on the defender's 3rd rank (here a6) and stops the enemy king from advancing. When the pawn advances, the rook goes back and checks from behind. In practice, defend as Black.
Bishops and knights
Two bishops against king
Win
Bishops of opposite colors together push the king to a corner, with your king's help. It always wins, in at most 19 moves with perfect play.
Bishop and knight against king
Win
The hardest of the basic mates: the king can only be mated in the corner of the bishop's color, and the way there is long (up to 33 moves). Practicing against the tablebase shows the technique.
Wrong bishop and rook pawn
Draw
The dark-squared bishop does not control a8, which is light, so the king in the corner draws even with a bishop and a pawn up. With the right-colored bishop it would be a win.
Data: the Lichess Syzygy tablebase (tablebase.lichess.org), by Ronald de Man, with the 7-piece tables generated by Bojun Guo. Cburnett pieces by Colin M. L. Burnett (Wikimedia Commons), under the BSD license.