Skip to content
Book of Riddles

Journey through time

Islamic world · chess problems from the 9th century

Mansuba

Dilaram’s mate

A chess problem a thousand years old, with a legend that is much younger

Scene In shatranj, masters such as al-Adli and as-Suli collected end positions and problems, the mansubat. This one is among the most famous.

White to move and win: mate in six moves, and every White move is a check. Black threatens to mate at once with a rook, so White may never make a quiet move. Tap a white piece, then its target. The rules of shatranj apply: the alfil leaps two squares diagonally, the firzan moves only one square diagonally.

The problem

White (“Red” in Murray) moves and gives mate in six. Every move must give check.

The pieces of shatranj

  • shah moves one square in every direction, never into check, no castling.
  • firzan (“counsellor”) moves one square diagonally.
  • alfil (“elephant”) leaps exactly two squares diagonally, also over occupied ones.
  • knight leaps as today.
  • rook moves as today.
  • pawn moves one square forward, captures diagonally, no double step, becomes a firzan on the last rank.

GoalGive mate to Black with nothing but checks, fastest in six moves.

Position: rook (White) h1, rook (Black) b2, alfil (White) h3, shah (White) a4, knight (Black) c4, knight (White) g4, rook (White) h4, pawn (White) f6, pawn (White) g6, rook (Black) b8, shah (Black) g8.

White moves: 0

Your move. Tap a white piece.

Marks on the board

  • Pieces White is yours, Black belongs to the computer. How the pieces move is listed above under the rules.
  • Red frame This shah is in check.
  • Golden square Start and end of the last move.

Seals of this station

  1. Solved solve the puzzle
  2. Best effort give mate without having to start over
  3. Masterpiece mate in exactly six moves (the shortest way), with no restart and no hint
On to the next stationWheat on the chessboard

The aim

The aim of the game is mate or a bare king for the opponent. According to Murray, stalemate counted in Muslim chess as a loss for the stalemated player; Murray points to the older Indian rule that gives the stalemated player the win.

Source

H. J. R. Murray, A History of Chess, Oxford 1913 (archive.org OCR)

The aim of play was twofold, either to give checkmate to the opponent’s King, or to annihilate his army. … was decisive in Muslim chess. The player who found himself in this predicament was held to have lost the game. … this old Indian rule by which the victory is given to the player whose King is stalemated

No. 83

The position is no. 83 in Murray’s list. His solution: “1 Rh8+; 2 Bf5+ d, Rh2; 3 RxR+; 4 Rh8+; 5 Pg7+; 6 Kth6 m.” (“Kt” is the knight, “B” the alfil, “d” a discovered check.) We read the diagram ourselves and checked the solution with our own move generator under shatranj rules: mate in six, none shorter.

Source

H. J. R. Murray, A History of Chess, Oxford 1913 (archive.org OCR)

83. 1 Rh8 + ; 2 Bf5 + d, Rh2; 3 RxR+; 4 Rh8+; 5 Pg7+; 6 Kth6 m.

Five instead of six

If Black answers the second move not with rook h2 but with king g8, mate comes after only five moves. So the computer always chooses the toughest defence.

Source

Wikipedia: Shatranj (Wikitext, accessed 08.11.2026)

1. Rh8+ Kxh8 2. Bf5+ Kg8 3. Rh8+ Kxh8 4. g7+ Kg8 5. Nh6

Older than the story

The position is older than the story. It appears in several manuscripts without any story, and Murray ascribes it to as-Suli; only in a Florence manuscript of 1501 is it called “the problem of Dilaram”.

Source

H. J. R. Murray, A History of Chess, Oxford 1913 (archive.org OCR)

The problem appears without any story in AH, C, H, AE and Man.

The legend

The legend: a nobleman believes he has lost his favourite wife Dilaram (“heart’s ease”) in a game, and she calls out to him: “Sacrifice your two rooks, and not me.” This is a legend; according to Murray such invented ascriptions and problem stories appear only in manuscripts of the 15th to 17th centuries.

Source

H. J. R. Murray, A History of Chess, Oxford 1913 (archive.org OCR)

first signs of the fanciful ascriptions and problem-legends, of which the Dilaram story

The story grows

The story kept growing: in the Urdu work of Durgaprasada all four wives advise the Mughal emperor Shah Jahan, but only Dilaram sees the rescue.

Source

H. J. R. Murray, A History of Chess, Oxford 1913 (archive.org OCR)

his four wives all advise him, but Dilaram alone sees how to save the game

Popular as far as Europe

The problem itself was one of the most popular in the Muslim world, and in Europe it inspired nearly 200 wager positions of the Middle Ages.

Source

H. J. R. Murray, A History of Chess, Oxford 1913 (archive.org OCR)

This problem was one of the most popular of all the Muslim problems. … In Europe it was the origin of nearly 200 wager-positions in the Middle Ages.