The History of AI, Part 11 of 24. Part 10 described the quiet statistical revolution of the 1990s. This chapter is about the loudest moment of that decade: May 1997, when a machine beat the world chess champion in a match that was watched by millions and argued about for years afterward.
On the afternoon of Sunday, 11 May 1997, in a rented television studio on the 35th floor of a midtown Manhattan skyscraper, the greatest chess player in the world resigned a game after only nineteen moves. He rose from the board, appeared to say something to no one in particular, and walked off the stage. The audience, who had been watching on screens in a nearby auditorium, were stunned. Cameras flashed. Within minutes, the news was racing around the planet.
The player who had just lost was Garry Kasparov, world champion since 1985, widely regarded as the strongest player in the history of the game. The winner was a refrigerator-sized IBM supercomputer called Deep Blue.
It was, by general agreement, the most famous moment in the history of AI up to that time. And almost everything the public took away from it was a little bit wrong, in interesting ways. This chapter tells the full story: where computer chess came from, how Deep Blue actually worked, what happened in the match, and why the victory meant both more and less than the headlines suggested.
Why chess?
Chess has been called the Drosophila of AI, after the fruit fly that geneticists use as a convenient model organism. It's a good analogy. Chess is rich enough that doing it well seems to demand intelligence, but simple enough to be defined precisely: a small board, a handful of rules, a clear winner. You can run experiments, compare programs against each other and against humans, and measure progress objectively, on a well-defined rating scale called the Elo system.
It also carried huge cultural weight. For centuries, skill at chess was taken as a sign of intellect. If a machine could beat the best human player, wasn't it showing genuine intelligence? That's why so many founders of computing and AI, from Turing to Shannon to Newell and Simon, tried their hands at chess programs.
Recall from earlier chapters:
- Turing and his friend David Champernowne wrote the Turochamp chess algorithm in 1948 and hand-simulated it in 1952, taking half an hour per move (Part 2).
- Claude Shannon's 1950 paper "Programming a Computer for Playing Chess" laid out the fundamental design of nearly all chess programs for the next half-century (Part 3).
- Herbert Simon predicted in 1957 that a computer would be world chess champion within ten years (Part 4). Off by about thirty years.
- Hubert Dreyfus, who argued that computers couldn't play real chess, lost to MIT's Mac Hack in 1967 (Part 6).
How a computer plays chess
To understand Deep Blue, you first need to understand the basic recipe that Shannon described, because Deep Blue was essentially a gigantic, ultra-fast, ultra-refined version of it.
Step 1: The game tree
At any position, the player to move has a set of legal moves. Each leads to a new position, where the opponent has their own set of replies, and so on. Draw this out and you get a game tree: the root is the current position, each branch is a move, and each level of the tree is one ply, meaning one player's move. (A "move" in chess terms is usually a pair of plies, one by each side.)
The tree grows fast. In a typical chess position there are about 35 legal moves (the average branching factor). Looking ahead 2 plies means about 35 × 35 = 1,225 positions. Four plies, about 1.5 million. Ten plies, about 2.7 quadrillion. The full tree of chess games contains an estimated 10^120 possibilities, a number called the Shannon number. It is vastly more than the number of atoms in the observable universe. No computer, however fast, can search it all. (This is the combinatorial explosion again, from Part 6.)
Step 2: Evaluate, don't finish
So the program can't look all the way to the end of the game. Instead it looks ahead a limited number of plies and then stops and evaluates the resulting position with a scoring function: how good does this look for me? A simple evaluation counts material (a queen is worth about 9 pawns, a rook 5, a bishop or knight 3), then adds bonuses and penalties for things like control of the center, king safety, pawn structure, and mobility. The score is a number: positive is good for White, negative for Black.
Step 3: Minimax
How do you pick the best move, given scores at the leaves of the tree? The answer, going back to John von Neumann's work on game theory in the 1920s, is minimax. You assume you will always choose the move that maximizes your score, and your opponent will always choose the reply that minimizes it. Work backward from the leaves: at your turn, take the maximum of the children's values; at the opponent's turn, take the minimum. The value that bubbles up to the root tells you the best you can guarantee against perfect play, and the branch it came from is your move.
Step 4: Alpha-beta pruning
Minimax alone still examines every branch. The key efficiency trick, developed in the late 1950s and early 60s and analyzed rigorously by Donald Knuth and Ronald Moore in 1975, is alpha-beta pruning. The idea: if you've already found a move that guarantees you a certain score, and you discover that a new candidate move allows the opponent a reply that makes it worse than that, you can stop examining the new candidate immediately. You don't need to know how much worse it is; you know you won't choose it. In the best case, alpha-beta lets you search roughly twice as deep in the same time.
Here's a demonstration with a game small enough to search completely, tic-tac-toe. We solve it from the empty board both ways and count how many positions each method examines:
LINES = [(0,1,2),(3,4,5),(6,7,8),(0,3,6),(1,4,7),(2,5,8),(0,4,8),(2,4,6)]
def winner(b):
for i, j, k in LINES:
if b[i] != " " and b[i] == b[j] == b[k]:
return b[i]
return None
def moves(b):
return [i for i, c in enumerate(b) if c == " "]
nodes = 0
def minimax(b, player):
"""Score from X's point of view: +1 X wins, -1 O wins, 0 draw."""
global nodes
nodes += 1
w = winner(b)
if w:
return 1 if w == "X" else -1
if not moves(b):
return 0
scores = []
for m in moves(b):
b[m] = player
scores.append(minimax(b, "O" if player == "X" else "X"))
b[m] = " "
return max(scores) if player == "X" else min(scores)
def alphabeta(b, player, alpha=-2, beta=2):
global nodes
nodes += 1
w = winner(b)
if w:
return 1 if w == "X" else -1
if not moves(b):
return 0
if player == "X":
best = -2
for m in moves(b):
b[m] = "X"
best = max(best, alphabeta(b, "O", alpha, beta))
b[m] = " "
alpha = max(alpha, best)
if alpha >= beta:
break # prune: O will never allow this line
return best
best = 2
for m in moves(b):
b[m] = "O"
best = min(best, alphabeta(b, "X", alpha, beta))
b[m] = " "
beta = min(beta, best)
if alpha >= beta:
break # prune: X will never allow this line
return best
board = [" "] * 9
nodes = 0
print("minimax value:", minimax(board, "X"), "| positions examined:", nodes)
nodes = 0
print("alphabeta value:", alphabeta(board, "X"), "| positions examined:", nodes)
On my run, plain minimax examines 549,946 positions, while alpha-beta reaches the same conclusion (a draw, as everyone knows) after only 18,297, thirty times fewer, with no loss of accuracy. In chess, with careful move ordering (trying the most promising moves first so that cutoffs happen early), the savings are far larger. Every serious chess program of the last sixty years has used some version of this.
Step 5: The refinements
Real engines pile on more tricks:
- Iterative deepening: search 1 ply, then 2, then 3, and so on, using the results of shallower searches to order moves for deeper ones, and stopping when time runs out.
- Transposition tables: remember positions already analyzed, since different move orders often reach the same position.
- Quiescence search: don't stop evaluating in the middle of a capture sequence; keep searching until the position is "quiet." Otherwise the program might think it has won a queen right before it gets recaptured. (The "horizon effect.")
- Opening books: pre-recorded sequences of moves from master games.
- Endgame tablebases: exhaustively precomputed results for positions with few pieces. Ken Thompson pioneered these in the 1970s and 80s; modern tables cover every position with seven pieces or fewer, and tell you the perfect move and exact number of moves to mate.
Notice what's absent from this list: understanding. A chess engine doesn't know what a "plan" or an "attack" is. It searches and scores. The scoring function is where human chess knowledge enters, hand-built by programmers and grandmasters.
The long road from Turing to Deep Blue
Computer chess progressed in steady steps over four and a half decades.
- 1957: Alex Bernstein at IBM wrote the first complete chess program, for the IBM 704, which searched 4 plies and took about eight minutes per move.
- 1967: Mac Hack VI, by Richard Greenblatt at MIT, became the first program to enter a human tournament and earn a rating, as well as the one that beat Dreyfus.
- 1970s: The annual ACM computer chess championships fostered fierce competition. Northwestern University's Chess 4.x series dominated. Hardware improved, and programs reached strong amateur level.
- 1980s: Belle, by Ken Thompson and Joe Condon at Bell Labs, used custom hardware to search millions of positions per second and became the first program to reach master level. The big lesson, one we've seen repeatedly: speed matters. Each doubling of search speed adds about 50 to 70 Elo points. Programs got stronger mainly by searching deeper.
- 1985 to 1988: At Carnegie Mellon University, graduate students Feng-hsiung Hsu and Murray Campbell (with Thomas Anantharaman, Mike Browne, and Andreas Nowatzyk) built ChipTest and then Deep Thought, a machine with custom chess chips, named after the supercomputer in Douglas Adams's The Hitchhiker's Guide to the Galaxy. In 1988, Deep Thought became the first computer to beat a grandmaster, Bent Larsen, in a regular tournament game.
- 1989: IBM hired the team to its research center in Yorktown Heights. That October, Deep Thought faced Garry Kasparov in a two-game exhibition in New York. Kasparov won both games easily. He later said he had not seen the machines as a serious threat. This turned out to be wrong.
Deep Blue
The IBM team, led by Hsu and Campbell and joined by Joe Hoane, Jerry Brody, and project manager C.J. Tan, spent most of the 1990s building a successor.

IBM's Deep Blue at the Computer History Museum. Image: Anton Chiang from Cupertino, CA, USA, CC BY 2.0, via Wikimedia Commons.
The machine
By 1997, Deep Blue (technically Deep Blue II) was an IBM RS/6000 SP supercomputer with 30 processor nodes, plus a staggering 480 custom-designed VLSI chess chips, sixteen per node. Hsu had designed those chips specifically to generate chess moves and evaluate positions in hardware. The machine weighed about 1.4 tons and could examine on the order of 200 million positions per second (averaging 100 million or more in practice), reaching typical depths of 12 plies and in forcing lines well beyond 20, sometimes as deep as 40.

One of Deep Blue's custom chess processor boards. Image: Erik Pitti from San Diego, CA, USA, CC BY 2.0, via Wikimedia Commons.
Its evaluation function was a hand-tuned set of thousands of features, reportedly around 8,000 parameters reflecting piece values, king safety, pawn structure, and subtle positional ideas, many of which were calibrated using grandmaster game databases and with the help of grandmaster Joel Benjamin, who served as a consultant. The team also had access to an enormous opening book and endgame databases.
In short, there was nothing mysterious about how Deep Blue worked. It was Shannon's 1950 recipe executed with incredible speed and polish. Hsu later described the project in his book Behind Deep Blue, and the emphasis was on engineering, not on any new theory of intelligence.
1996: first contact
The first match took place in Philadelphia in February 1996. On 10 February, Deep Blue won Game 1, becoming the first computer to beat a reigning world champion in a game under standard tournament time controls. The press went wild. Newsweek ran a cover story titled "The Brain's Last Stand."
But Kasparov recovered. He adjusted his style, steering into closed, maneuvering positions where the computer's lack of long-term planning showed, and he won the match 4 to 2 (three wins, two draws, one loss). Kasparov said afterward that he had sensed something deeply new in Game 1, "an alien intelligence," but he was clearly the stronger player.
IBM and the team went back to the drawing board, and Deep Blue was radically upgraded, doubling its speed and reworking its evaluation.
The 1997 rematch
The rematch was held in New York from 3 to 11 May 1997, six games, with 3 hours for the first 40 moves. The stakes were huge: a prize fund of $1.1 million, with $700,000 for the winner, and enormous media attention. Kasparov was 34 and at the height of his powers.

Garry Kasparov. Image: Grendelkhan, CC BY-SA 4.0, via Wikimedia Commons.
Game 1: Kasparov wins
Kasparov won Game 1 in a pure display of strategic mastery. But something odd happened late in the game, which would cast a long shadow. On its 44th move, Deep Blue made a bizarre, apparently pointless rook move. Kasparov, trying to understand it, decided that the machine had seen something deep that he had missed. It shook him. Years later, it was revealed (in Hsu's account, and discussed by the statistician Nate Silver in his book The Signal and the Noise) that the move was caused by a software bug: faced with too many equally bad options, the program had chosen a move more or less at random. Kasparov had read profound intention into a glitch. (A neat echo of the ELIZA effect from Part 5.)
Game 2: the controversy
In Game 2, Deep Blue played what many commentators called an astonishingly human-like game. It made a quiet, positional move at move 36 that seemed to show deep understanding, and it declined to grab a pawn that a typical computer would have taken. After 45 moves, Kasparov resigned, convinced he was lost and that the machine was playing in a way no machine should.
Later analysis, including by other computers, revealed that Kasparov could probably have drawn by perpetual check. He had resigned in a position that was, objectively, not lost. That bruised him psychologically. Convinced that no computer could have played that way, he began to suspect that human grandmasters were secretly helping the machine. He demanded printouts of the machine's calculations, which IBM declined to provide during the match (they released logs later, which did not support the cheating hypothesis). The IBM team's explanation was that they weren't allowed to intervene during games, only between them, to adjust the program.
The atmosphere around the board grew tense. Kasparov accused IBM of cheating; IBM kept its cool; the cameras kept rolling.
Games 3 to 5: draws
Games 3, 4, and 5 were draws. Kasparov, rattled and playing in an unnatural, defensive style, avoided his usual sharp attacking play.
Game 6: the collapse
Heading into the final game, the match was level at 2.5 to 2.5. Kasparov, playing Black, chose a sharp opening, the Caro-Kann Defense, and on move 7 made an inaccurate move order that allowed Deep Blue to play a knight sacrifice on e6, a known tactical idea. Within 19 moves, Kasparov's position was collapsing, and he resigned. The final score: Deep Blue 3.5, Kasparov 2.5. (Two wins for the machine, one for the human, three draws.)
In the press conference afterward, Kasparov was angry and visibly upset, hinting that he had been outplayed by a machine that was not playing fair. He later acknowledged that he had been tired and demoralized, and that his Game 6 choice was a mistake born of that mood. In a later memoir, Deep Thinking (2017), he reflected with greater grace on the experience and wrote that the match had been the start of an important and healthy conversation about humans and machines.
The aftermath
IBM treated the victory as a triumph of technology and marketing. Its stock price reportedly jumped, the company's profile soared, and then, almost immediately, Deep Blue was dismantled. IBM declined Kasparov's request for a rematch, and the machine was retired, with parts displayed in museums, including the Computer History Museum and the Smithsonian. Hsu and some colleagues later moved on to other work.
The match was the subject of an acclaimed documentary, Game Over: Kasparov and the Machine (2003), and the debate it kindled has never fully stopped.
What happened to computer chess
Computer chess kept improving, with or without IBM:
- In 2002, Vladimir Kramnik, the new world champion, drew an 8-game match against Deep Fritz, a program running on an ordinary multi-processor PC.
- In 2003, Kasparov himself drew matches against Deep Junior and X3D Fritz.
- In 2006, Deep Fritz beat Kramnik 4 to 2, and this was the last major match between a reigning world champion and a top program. After that, the question was settled.
- Soon, engines like Rybka, Houdini, and Stockfish (open source, first released in 2008) running on an ordinary laptop would be vastly stronger than any human who has ever lived. Today the best human players have no realistic chance against them, and chess grandmasters use engines to prepare and analyze.
The 2017 story is the most striking: Google's AlphaZero, a neural network that taught itself chess through self-play in a few hours, crushed Stockfish. It played in a style that experts described as imaginative and human-like, in a sense more "creative" than Deep Blue's brute force. We'll tell that story in Part 17, because it marks a deep shift in how AI works.
Humans and machines together: "centaur chess"
One intriguing outcome came from Kasparov himself. In 1998, he organized the first "Advanced Chess" event, in which human players use computers as aids. Teams of human plus machine, sometimes called centaurs, turned out to be stronger than either alone, at least for a time, and in some freestyle tournaments, amateur players with good processes and ordinary laptops beat both grandmasters and powerful machines working alone. Kasparov drew an interesting moral: what mattered was not the raw power of the human or the machine but the quality of the collaboration process. That theme is back in vogue in the era of AI assistants.
What did Deep Blue's victory really mean?
Reactions to the match fell into two camps, and both have something right.
The "it's a big deal" view
For many, this was a watershed. A machine had beaten the best human at a game long associated with deep intellect. The headline from Newsweek was a declaration that human supremacy was ending, at least in this domain. Kasparov felt it himself: he said he could "smell a new kind of intelligence across the table."
It was also a vindication of Turing, Shannon, Simon, and the early chess pioneers. They had seen that chess was within reach, and that machines might one day beat us at it. They were right.
The "it's not intelligence" view
For others, Deep Blue showed the opposite. The machine didn't understand chess. It had no sense of beauty, no strategic planning in the human sense, no ability to learn from its games (it didn't improve over the course of the match, except through the team's manual adjustments between games), and no ability to do anything else, not even play checkers or tic-tac-toe. It was an enormously fast search engine, backed by thousands of hand-tuned rules, wrapped in custom silicon.
John McCarthy, who had coined the term "artificial intelligence" and invented Lisp, was famously unimpressed. He argued that computer chess had developed the way genetics might have if geneticists, starting in 1910, had concentrated on breeding racing fruit flies: lots of fast flies, but not much insight into biology. In his view, the field had focused on the sport rather than on the science of intelligence, and Deep Blue taught us little about how humans actually play: a grandmaster examines perhaps a few dozen positions in a few seconds, guided by pattern recognition and intuition, whereas Deep Blue examined hundreds of millions.
Douglas Hofstadter, author of Gödel, Escher, Bach, admitted that he was unsettled by it: perhaps chess did not require the deep creativity he'd assumed. That pattern would recur whenever an AI milestone was reached: first people say a task requires true intelligence; then a machine does it; then people conclude that the task didn't require intelligence after all. This is the AI effect we met in Part 7.
Both are right
The two views describe different things. Deep Blue was a spectacular achievement of engineering and it did settle a question about performance: a machine can beat any human at chess. It did not demonstrate general intelligence, and it didn't use the kind of learning that would later prove so powerful. As IBM's own researchers cheerfully admitted, it was a specialized machine for a specialized task.
The gap between "superhuman at one narrow task" and "generally intelligent" is a recurring theme of this series. Chess turned out to be easier than it looked, for the reasons Moravec's paradox predicted: clean, formal, well-defined rules, ideal for search. The problems that really resist, as we've seen, are the messy ones: vision, language, common sense.
Other games fall
Chess was not alone. Through the 1990s and 2000s, one board game after another fell to machines.
- Checkers: The program Chinook, by Jonathan Schaeffer's team at the University of Alberta, fought the legendary human champion Marion Tinsley, who had lost only a handful of games in forty years. Their 1994 match ended when Tinsley withdrew for health reasons (he died in 1995). In 2007, Schaeffer's group announced they had solved checkers: with perfect play, the game is a draw. It was the culmination of nearly two decades of computation.
- Othello: In 1997, the program Logistello beat the world champion Takeshi Murakami 6 games to 0.
- Backgammon: TD-Gammon, as we saw in Part 9, reached near-world-class level through reinforcement learning.
- Scrabble, poker, bridge: Programs became strong in each, although imperfect-information games like poker would not be cracked at the top level until the 2010s and 2020s.
And then there was Go.
The game that stayed out of reach
Go, the ancient board game from East Asia, played on a 19-by-19 grid, resisted every attempt. The branching factor in Go is about 250 moves per turn (compared with chess's 35), so the game tree is astronomically bigger, with some 10^170 legal board positions. And evaluating a Go position is much harder: there's no simple material count like in chess, and good players rely on intuitive judgments about influence, shape, and territory that were nearly impossible to encode by hand.
In 1997, around the time of the Deep Blue match, a commentator in the New York Times said it might take a hundred years or more for a computer to beat a human champion at Go. For nearly two decades, the best Go programs played at the level of a modest amateur. Brute force didn't work, and human knowledge was too hard to write down.
What eventually worked was a combination of deep neural networks, reinforcement learning, and tree search, a fusion of the statistical and connectionist revolutions with the old search ideas. That landmark, AlphaGo's 2016 victory over Lee Sedol, is the subject of Part 17. The unexpectedly short wait, about nineteen years after Deep Blue, is one of the great examples of why predicting AI timelines is such a treacherous business.
Lessons from the match
Deep Blue is worth understanding well, because it illustrates several patterns that we'll see again.
- Scale can substitute for cleverness. Deep Blue's victory came from raw speed, custom hardware, and a huge team of engineers rather than a radical new idea. Later in this series, we'll see this lesson reappear on a vastly larger scale, in the era of large language models.
- Narrow superhuman performance is possible long before general intelligence. The two should never be confused.
- Humans read intention into machines. Kasparov's reaction to the bug on move 44 shows how readily we attribute understanding and intent to a system. This matters for how we interpret fluent AI today.
- Milestones are moving targets. When a machine achieves what was supposed to need intelligence, the goalposts shift.
- The human-machine team can beat either one. The "centaur" lesson has outlasted the specific match.
- Public perception can lag or lead the reality. The match made headlines worldwide, yet the deeper changes in AI that were happening in the 1990s, the statistical and neural revolutions of Parts 9 and 10, attracted almost no attention.
Key takeaways
- Chess was AI's model organism: clear rules, measurable progress, and cultural prestige.
- Computers play chess by searching a game tree with minimax and alpha-beta pruning, then scoring positions with an evaluation function, an approach laid out by Shannon in 1950.
- Deep Blue (IBM, 1997) combined 30 processors and 480 custom chess chips, evaluating about 200 million positions per second, with a hand-tuned evaluation function and a big opening book.
- It lost to Kasparov in 1996 (2-4) and beat him in 1997 (3.5-2.5), a result clouded by a software bug in Game 1, a possibly premature resignation in Game 2, and accusations of cheating.
- The victory was a triumph of engineering and speed, not of learning or understanding, and critics like McCarthy called computer chess the sport rather than the science of AI.
- By the mid-2000s, ordinary PCs running chess engines outplayed any human, and "centaur" teams showed the power of human-machine collaboration.
- Go remained unsolved until the neural-network era, a story told in Part 17.
Try it yourself
- Make a tic-tac-toe opponent. Use the alpha-beta function above to build a command-line game where the computer picks its move by calling it for each candidate move. Verify that you can never beat it (only draw).
- Feel the pruning. Add a counter that records how many positions alpha-beta examines when you shuffle the move order randomly versus always trying the center first. Does move ordering matter?
- Write a mini evaluation function. Create a simple 3-by-3 evaluation (count lines where X can still win minus lines where O can still win) and use it with a depth limit of 2 instead of searching to the end. How much weaker is the result?
- Try a real engine. Download Stockfish (it's free and open source) and play a few games against it at different skill levels. Where do you start to lose?
Next up
In Part 12, we turn from games to the ingredients that finally made deep learning explode: big data and the GPU. We'll meet the Stanford professor who built ImageNet, the video-game chips that turned out to be perfect for neural networks, and the stage setting for one of the most dramatic competitions in AI history.
If you remember where you were when Deep Blue beat Kasparov (or you've played against an engine yourself), tell me in the comments, and follow the series so you don't miss Part 12.
See you in Part 12.
☕ If this series helped you, you can support my writing on Ko-fi.

Top comments (0)