A Think Again Media Group publication
Bot Stumper

A surprising chess move

Deep Blue bug: a rook move inside a carefully engineered chess machine

By Phil Springer, Editor · Published · Bot Stumper

Deep Blue bug: a rook move inside a carefully engineered chess machine

The Deep Blue bug associated with move 44 occurred in a game Garry Kasparov won. On 3 May 1997, playing White in the opening game of the rematch, he advanced a pawn with 44.f6. Black replied 44...Rd1, moving a rook to d1; after 45.g7, the computer resigned. The published game score records those moves. The explanation involving a software failure came through later reporting, rather than from anything visible in the arrangement of pieces on the board.

Normal move selection involved considerably more machinery. In their 1995 technical paper, Feng-hsiung Hsu, Murray Campbell and Joseph Hoane described a chess chip containing a move generator, an evaluation function and a search controller. The evaluation function occupied about two-thirds of its area. Generating possible moves and assigning values to the resulting positions were distinct operations, with substantial hardware devoted to the latter. The move generator used an eight-by-eight array corresponding to the chessboard, with rules embodied in the connections between cells.

That design also handled details easily lost in a headline about speed. Separate circuitry tracked castling and en passant. Evaluation included piece placement, endgame conditions and a slower calculation of positional features, including king safety, pawn structure, pins and trapped pieces. A host computer could initiate a chip search and then attend to another chip or housekeeping. The 1995 paper described a developing system, with the final configuration still incomplete. Software handled much of the selective search, extending the calculation farther along particular lines. A twelve-ply search could divide into eight plies in software and four on the chips; each ply is one player's turn.

Hsu's 2005 Computer History Museum interview describes how those judgments were developed. After the first Kasparov match, the team concluded that the machine needed more chess knowledge. Grandmaster Joel Benjamin played it daily using take-back chess: he could retract moves and explore alternatives until he found a weakness that could be reproduced. The engineers then had a particular position and a particular behavior to investigate. A grandmaster's contribution entered through repeated testing and changes to the system, rather than through a vague instruction to play more intelligently.

One example involved rooks and files. Hsu recalled Benjamin explaining that occupying an open file immediately could lead to exchanges that removed the advantage. Sometimes retaining the option to open a file was more valuable. The engineers introduced a bonus for that option. Hsu connected this concept with the machine's pressure in the second game of the rematch, when it assembled pieces along a file before opening it. Many terms were parameterized as curves and mathematical relationships. Hsu estimated roughly 3,000 terms in the software representation of the evaluation function.

Campbell's own museum interview gives a different view of the same testing work. Benjamin reported suspicious moves, including moves that appeared only briefly in the computer's projected continuation. Campbell had to determine whether the problem lay in the search, the evaluation or the human judgment of the position. Some apparently poor moves survived investigation because alternatives were worse. A surprising move could therefore be a useful diagnostic lead without automatically identifying a software fault. Campbell described tracing such fleeting indications as a slow process that occupied much of his time.

The program's relationship with human judgment also extended to draws. Campbell said the team had agreed before the match to handle draw acceptance, because the machine might overvalue an advantage that experienced players knew was insufficient to win. Its endgame databases supplied exact results for positions with five or fewer pieces and some with six. Those resources did not cover every position in which human experience recognized a practical draw. Campbell noted that exact database solutions could require hundreds of moves, another complication in relating a calculated advantage to practical play.

The first game's result is particularly useful context for the Deep Blue bug. Kasparov finished that day ahead in the match. He resigned the second game on 4 May, although subsequent analysis found a drawing possibility in its final position. Three drawn games followed. Deep Blue won the sixth game, taking the rematch 3½–2½. The unusual rook move belongs to the opening loss, while the overall victory depended on results across six games. Kasparov resigned the deciding game after 19 moves, following a knight sacrifice that broke through his defense.

In 2012, WIRED reported Campbell's explanation to Nate Silver: the machine had been unable to select a move and had chosen randomly. The team subsequently repaired the software. The Deep Blue bug also attracted speculation about Kasparov's reaction, but WIRED explicitly left open whether the match would have ended differently without it. A reported malfunction and a claim that it decided the entire contest carry different levels of certainty.

The Question

What caused the unusual play on move 44 of the first game in the 1997 Kasparov rematch?

Show the answer

The Answer

A software bug caused Deep Blue to select a random legal move. It had entered an unintended loop and used that move to exit it.

Send this question to a friend

Read next

By clicking “Send me a stumper” you agree to Bot Stumper’s Terms of Use and Privacy Policy.