The Lab · von Neumann, 1928 · Shannon, 1950
How Computers Play Games
Play against five different ways of thinking, from flipping a coin to checking every possible future. Then peek inside: see what it was thinking, and the moves it never had to look at.
The big ideas
The game tree. Picture every move you could make, then every reply, then every reply to that. It branches like a tree. The "Look-ahead" players walk along those branches.
Minimax. Score the positions at the tips of the branches. Then work back up. On your turn, take the highest score (the max). On your opponent's turn, assume they'll take the lowest (the min), because they're trying too.
Alpha–beta pruning. Once one reply shows a move is worse than one you've already found, you don't need to know how much worse. Skip the rest of that branch. Same answer, far less work.
A guess at the edge. Checkers is far too big to search to the end. So the Deep Thinker stops after a few moves and guesses who's ahead. A man is worth 1 and a king 1½. Men earn a little for marching forward. Pieces earn a little for standing near the centre. Men still on their own back row earn a little for guarding it, because that stops the other side getting kings.
And chess? Exactly the same ideas, with a much bigger tree. A chess position usually has 30 or more legal moves. In 1997 IBM's Deep Blue, searching with minimax and alpha–beta on special chips, beat the world champion Garry Kasparov in a six-game match.