Go and mathematics
|Part of a series of articles on|
|History and culture|
|Players and organizations|
|Computers and mathematics|
The game of Go is one of the most popular games in the world.
As a result of its elegant and simple rules, the game of Go has long been an inspiration for mathematical research. Chinese scholars of the 11th century already published work on permutations based on the go board. In more recent years, research of the game by John H. Conway led to the invention of the surreal numbers and contributed to development of combinatorial game theory (with Go Infinitesimals being a specific example of its use in Go).
Since each location on the board can be either empty, black, or white, there are a total of 3N possible board positions on a board with N intersections. Tromp and Farnebäck showed that on a 19×19 board, about 1.2% of board positions are legal (no stones without liberties exist on the board), which makes for 3361×0.01196... = 2.08168199382... ×10170 legal positions "of which we can expect all digits to be correct" (i.e. because the convergence is so fast). It has been estimated that the observable universe contains around 1080 atoms, far less than the amount of possible legal positions. As the board gets larger, the percentage of the positions that are legal decreases. Go (with Japanese ko rules) is a two player un-bounded EXPTIME-complete game. Rule variations that place a polynomial bound on the length of the game produces a PSPACE-complete game. The complexity of Go with superko rules remains an open question.
|Game size||Board size N||3N||Percent legal||Maximum legal game positions|
Game tree complexity
The computer scientist Victor Allis notes that typical games between experts last about 150 moves, with an average of about 250 choices per move, suggesting a game-tree complexity of 10360. For the number of theoretically possible games, including games impossible to play in practice, Tromp and Farnebäck give lower and upper bounds of 101048 and 1010171 respectively. The most commonly quoted number for the number of possible games, 10700 is derived from a simple permutation of 361 moves or 361! = 10768. Another common derivation is to assume N intersections and L longest game for N^L total games. For example, 400 moves, as seen in some professional games, would be one out of 361400 or 1 × 101023 possible games.
The total number of possible games is a function both of the size of the board and the number of moves played. While most games last less than 400 or even 200 moves, many more are possible.
|Game size||Board size N (intersections)||N!||Average game length L||NL||Maximum game length (# of moves)||Lower Limit of games||Upper Limit of games|
The total number of possible games can be estimated from the board size in a number of ways, some more rigorous than others. The simplest, a permutation of the board size, (N)L, fails to include illegal captures and positions. Taking N as the board size (19×19=361) and L as the longest game, NL forms an upper limit. A more accurate limit is presented in the Tromp/Farnebäck paper.
|Longest game L (19×19)||(N)L||Lower Limit of games||Upper Limit of games||Notes|
|1||1||361||361||White resigns after first move|
|361||1.4×10768||1.8×10923||Longest game using 181 black and 180 white stones|
|400||n/a||1.0×101023||Longest professional games|
|47 million||n/a||10108||361^3 moves|
From this table, we can see that 10700 is an overestimate of the number of possible games that can be played in 200 moves and an underestimate of the number of games that can be played in 361 moves. It can also be noted that since there are about 31 million seconds in a year, it would take about 2¼ years, playing 16 hours a day at one move per second, to play 47 million moves. As to 1048, since the future age of the universe is projected to be less than 1000 trillion years and no computer is projected to compute anything close to a trillion Teraflops (one yottaflop), any number higher than 1039 is beyond possibility of being played.
Many of the commonly seen opening strategies, joseki and tactical shapes which aid skillful play have been developed over thousands of years of play and taught to successive generations rather than discovered through individual play. There are many positional situations in Go which are recognizable by an experienced player that are hard to recognize otherwise. Once players gain knowledge of these patterns in play, they then must ponder how to apply them in accordance with the position of the board as it stands and the recognizable patterns already in place. Thus, the traditions of Go strategical theory utilized by most stronger players are taught to beginners and help to limit the scope of variation in actual play while deepening strategy.
- AGA. "Top Ten Reasons to Play Go".
- Johnson, George (1997-07-29). "To Test a Powerful Computer, Play an Ancient Game". New York Times.
- John Tromp and Gunnar Farnebäck (2007). "Combinatorics of Go".
- Robert Hearn (2006). "Games, Puzzles, and Computation" (PDF).
- Tromp, John (2005). "Number of legal Go positions (up to 19×19)".
- Victor Allis (1994). Searching for Solutions in Games and Artificial Intelligence (PDF). Ph.D. Thesis, University of Limburg, Maastricht, The Netherlands. ISBN 90-900748-8-0.
- Tromp, John (1999). "Number of 2×2 games with positional superko".