Retrograde analysis is a technique employed by chess problem solvers to determine which moves were played leading up to a given position. A chess problem, also called a chess composition, is a puzzle set by somebody using Chess pieces on a Chess board that presents the solver with While this technique is rarely needed for solving ordinary chess problems, there is a whole sub-genre of chess problems in which it is an important part; such problems are known as retros.
Retros may ask, for example, for a mate in two, but the main puzzle (at least in modern retros) is in explaining the history of the position. This may be important to determine, for example, if castling is disallowed or an en passant pawn capture is possible. Illustration Example in opening In this line from the Petrov Defence, White can capture the pawn on d5 en passant on his sixth move The pawn (♙♟ is the weakest and most numerous piece in the Game of Chess, representing Infantry Other problems may ask specific questions relating to the history of the position such as "is the bishop on c1 promoted?". This is essentially a matter of logical reasoning, with high appeal for puzzle enthusiasts.
Sometimes it is necessary to determine if a particular position is legal, with "legal" meaning that it could be reached by a series of legal moves, no matter how bad. Another important branch of retrograde analysis problems is proof game problems. A shortest proof game is a type of Retrograde analysis Chess problems The solver must construct a game (so called proof-game) starting from the initial
An example of a retrograde analysis problem is shown above. The solver must deduce White's last move. At first blush, there seems to be no solution: on any square from which the white king could have moved, it would have been under a seemingly impossible double check; however, thinking more we can discover that if white king moved from f5, then the black move before that could be pawn f4xg3, taking the white pawn on g4 en passant! Thus before f4xg3, white must have played pawn g2-g4. Illustration Example in opening In this line from the Petrov Defence, White can capture the pawn on d5 en passant on his sixth move But what did Black move before that? The white king on f5 was under check by the bishop on h3 and there was a white pawn on g2. The only possibility is that black moved knight g4-e5 with discovered check. Therefore White's last move was king f5 takes knight on e5. (The entire sequence of moves is thus 1. . . Ng4-e5 discovered check 2. g2-g4 f4xg3 double check 3. Kf5xe5. )
Note that in this example the actual next move is essentially irrelevant; Black has a choice of several relatively trivial ways of delivering instant checkmate. Checkmate (frequently shortened to mate) is a situation in Chess (and in other Boardgames of the Chaturanga family in which one player's
Some problems use a method called "partial retrograde analysis" (PRA). In these, the history of a position cannot be determined with certainty, but each of the alternative histories demands a different solution. The problem to the left by W. Langstaff (from Chess Amateur 1922) is a relatively simple example; it is a mate in two. It is impossible to determine what move Black played last, but it is clear that he must have either moved the king or rook, or else played g7-g5 (g6-g5 is impossible, since the pawn would have been giving check). Therefore, either Black cannot castle, or White can capture on g6 en passant. Illustration Example in opening In this line from the Petrov Defence, White can capture the pawn on d5 en passant on his sixth move It is impossible to determine exactly what Black's last move actually was, so the solution has two lines:
Raymond M. Smullyan wrote two well-received retrograde analysis riddle books: