Estimating a compelling upper bound for the number of possible chess games is a fascinating problem that combines combinatorics, game theory, and practical constraints. While the exact number of possible chess games is unknown, we can derive a reasonable upper bound by considering the rules of chess, the structure of the game, and practical limitations. Below, I outline the key considerations and provide a compelling upper bound.
1. Understanding Chess Games
A chess game is a sequence of moves (alternating between White and Black) that ends in one of the following outcomes:
- Checkmate (win for one side).
- Stalemate, draw by insufficient material, threefold repetition, or the 50-move rule (all resulting in a draw).
- Resignation or mutual agreement to a draw (though these are not relevant for theoretical bounds, as we are interested in all possible legal games).
To estimate an upper bound, we need to consider:
- The maximum number of legal moves at each position.
- The maximum length of a game (in moves).
- The total number of possible sequences of moves.
2. Maximum Number of Legal Moves per Position
In any given chess position, the number of legal moves is finite. The theoretical maximum number of legal moves in a single position is 218, which occurs in highly contrived positions (e.g., a position with many promoted queens and other pieces arranged to maximize mobility). However, such positions are extremely rare in practice. For a more reasonable upper bound, we can use an average or typical maximum number of legal moves in realistic positions, which is often estimated to be around 30–40 moves per position in typical games.
For a conservative upper bound, we can assume a maximum of 100 legal moves per position as a reasonable overestimate, ensuring we cover even the most complex positions without resorting to the extreme 218.
3. Maximum Length of a Chess Game
The length of a chess game is theoretically finite due to the rules of chess, particularly the 50-move rule and the threefold repetition rule. However, to establish an upper bound, we need to consider the longest possible game under the rules.
The 50-Move Rule
The 50-move rule states that a game can be declared a draw if no pawn is moved and no capture is made in 50 moves (i.e., 25 moves per player). This rule limits the number of moves between "irreversible" actions (pawn moves or captures). To maximize the length of a game, we need to consider how many irreversible actions are possible and how many reversible moves can be made between them.
Counting Irreversible Actions
- Pawn Moves: Each of the 16 pawns (8 per player) can move up to 6 times (from its starting rank to promotion, e.g., a2 to a8 for White). Thus, the total number of pawn moves is at most (16 \times 6 = 96).
- Captures: There are 32 pieces on the board initially, and at most 30 captures can occur (since at least two pieces must remain, e.g., the two kings). Each capture is an irreversible action.
- Promotions: Pawn promotions are also irreversible, but they are already counted as part of pawn moves (a pawn reaching the 8th rank must promote, which counts as a single move).
Thus, the total number of irreversible actions (pawn moves or captures) is at most (96 + 30 = 126).
Reversible Moves Between Irreversible Actions
Between each pair of irreversible actions, the players can make up to 50 moves (25 moves per player) without triggering a draw. Therefore, the total number of moves in a game can be stretched by inserting the maximum number of reversible moves between irreversible actions.
The longest possible game occurs if:
- There are 126 irreversible actions.
- Between each pair of irreversible actions (and after the last one), the players make 49 reversible moves (just shy of triggering the 50-move rule).
The total number of moves (M) in such a game is:
[
M = 126 + 49 \times 126 = 126 + 6174 = 6300
]
This is an upper bound on the number of moves in a legal chess game under the 50-move rule. Note that this is a theoretical maximum and assumes players deliberately avoid draws and maximize the game length.
4. Total Number of Possible Games
A chess game is a sequence of moves, where each move is chosen from the set of legal moves in the current position. To compute an upper bound on the number of possible games, we can assume:
- Each position has at most 100 legal moves (as a reasonable overestimate).
- The game lasts at most 6300 moves.
The total number of possible move sequences (games) is then bounded by:
[
N \leq 100^{6300}
]
This is an extremely large number, as it represents 100 choices per move for 6300 moves. To put it in perspective, (100^{6300} = 10^{2 \times 6300} = 10^{12600}), which is vastly larger than the number of atoms in the observable universe ((\approx 10^{80})).
5. Refining the Upper Bound
While (100^{6300}) is a valid upper bound, it is not "compelling" because it grossly overestimates the number of games by ignoring several factors:
- The average number of legal moves per position is much lower than 100 (typically around 30–40).
- Most games end long before 6300 moves due to checkmate, stalemate, or draws.
- The threefold repetition rule and other draw mechanisms further reduce the number of distinct games.
Using a More Realistic Average Number of Moves
In practice, the average number of legal moves per position in a typical chess game is often estimated to be around 35. If we use this value instead of 100, the upper bound becomes:
[
N \leq 35^{6300}
]
This is still an enormous number ((35^{6300} \approx 10^{1.54 \times 6300} \approx 10^{9700})), but it is more reasonable than (100^{6300}).
Considering Shorter Games
The vast majority of chess games end in far fewer than 6300 moves. For example:
- Typical grandmaster games last around 40–80 moves.
- Even pathological games designed to maximize length (e.g., avoiding draws) rarely exceed a few hundred moves.
If we consider a more practical maximum game length of, say, 1000 moves (which is still far beyond any realistic game), the upper bound becomes:
[
N \leq 35^{1000} \approx 10^{1540}
]
This is still an astronomically large number, but it is more compelling as an upper bound because it accounts for the fact that games of extreme length are vanishingly rare.
6. Shannon Number as a Reference
A well-known estimate for the number of "sensible" chess games is the Shannon number, proposed by Claude Shannon in 1950. Shannon estimated the number of distinct chess games (considering only "reasonable" games, not all legal sequences) to be around (10^{120}). This estimate is based on:
- An average branching factor of 35 legal moves per position.
- An average game length of 80 moves (40 moves per player).
The Shannon number is not an upper bound but rather a lower bound on the number of "interesting" or "plausible" games. Our upper bound of (10^{1540}) (for 1000 moves) or (10^{9700}) (for 6300 moves) is much larger, as it includes all possible legal sequences, including nonsensical or pathological ones.
7. A Compelling Upper Bound
To provide a "compelling" upper bound, we should aim for a number that:
- Accounts for all legal games, including pathological ones.
- Uses realistic estimates for the branching factor and game length.
- Is not so large as to be meaningless (e.g., (10^{12600}) is too extreme).
A reasonable and compelling upper bound can be derived by assuming:
- A maximum branching factor of 40 (slightly above the average of 35, to account for complex positions).
- A maximum game length of 1000 moves (far beyond any practical game, but sufficient to cover all reasonable legal games).
The upper bound is then:
[
N \leq 40^{1000} \approx 10^{1.6 \times 1000} = 10^{1600}
]
This number, (10^{1600}), is still unimaginably large, but it is a more compelling upper bound than (10^{9700}) or (10^{12600}) because it uses more realistic parameters while still covering all possible legal games.
8. Comparison to Other Estimates
- Shannon Number: (10^{120}) (lower bound on "sensible" games).
- Total Positions: The number of distinct chess positions is estimated to be around (10^{40}) to (10^{50}). Since each game is a sequence of positions, the number of games is much larger than the number of positions.
- Practical Games: The number of games that are actually played or analyzed (e.g., in databases like Lichess or ChessBase) is on the order of (10^9) to (10^{10}), a tiny fraction of the total.
Our upper bound of (10^{1600}) is consistent with the idea that the number of possible games vastly exceeds the number of positions, as each game is a unique path through the space of positions.
9. Conclusion
A compelling upper bound for the number of possible chess games, considering all legal sequences while using reasonable parameters, is:
[
\boxed{10^{1600}}
]
This bound is derived by assuming a maximum of 40 legal moves per position and a maximum game length of 1000 moves. It is a conservative overestimate that includes all possible legal games, including highly pathological ones, while avoiding the extreme overestimates that arise from using the theoretical maximum branching factor (218) or game length (6300 moves).
This number is still far larger than any physically meaningful quantity (e.g., the number of atoms in the universe, (10^{80}), or the number of Planck times since the Big Bang, (10^{60})), emphasizing the immense complexity of chess.