Havannah is a two-player abstract strategy board game invented by Christian Freeling. It belongs to the family of games commonly called connection games; its relatives include Hex and TwixT. Havannah has "a sophisticated and varied strategy" and is best played on a base-10 hexagonal board, 10 hex cells to a side.
One player plays as black; the other plays as white. White starts, after which moves alternate. The rules are as follows:
- Each player places one stone of their color on the board per turn.
- Stones are never moved, captured, or otherwise changed.
- A player wins when they complete one of three different structures from unbroken lines, or paths, of connected stones, all of their colour:
- A ring is a loop around one or more cells (no matter whether the encircled cells are occupied by any player or empty);
- A bridge, which connects any two of the six corner cells of the board;
- A fork, which connects any three edges of the board; corner points are not considered parts of an edge.
An example of all three winning combinations is shown above. The structure in the centre of the board is a ring; the structure on the left-hand side is a fork; the structure on the right-hand side is a bridge.
Since the first player to move in Havannah has a distinct advantage, the pie rule is generally implemented for fairness. This rule allows the second player to choose whether to switch positions with the first player after the first player makes the first move.
Players of different strength can still play an interesting game when the weaker player (as white) is allowed to place two or more stones on the first turn.
Difference compared to HexEdit
In Hex, when the board is completely filled, exactly one player will have a winning connection; in Havannah a completely filled board will have usually more than one winning structures (but the game ends with first winning structure).
Unlike in Hex, in Havannah draws are technically possible, in practice they are extremely rare. There has been one known draw between human players. Tactics are much easier to master than strategy, and differences in playing level are considerable.
In 2002 Freeling offered a prize of 1000 euros, available through 2012, for any computer program that could beat him in even one game of a ten-game match. For many years, computer programs lagged far behind human players. However, since 2010 several Havannah-playing programs have applied Monte Carlo tree search techniques resulting in some notable improvement in playing strength. The "Havannah Challenge 2012" was held October 15–19, 2012 during which Freeling played ten games against three of the strongest Havannah-playing programs available, playing (at least) one game as black and one as white against each opponent. Freeling lost the challenge when he had to resign a game with white against the Lajkonik program.
Until 2019, the best humans were still by far stronger than computers. However, MetaTotoro, based on Polygames (an open-source project, initially developed by Facebook Artificial Intelligence Research and several universities), won four times in a row on the board of size 8 against the human player with the best ELO rank on LittleGolem, who was also the winner of various tournaments.
This result was achieved by the same program as the one used for beating best humans at Hex. It is a zero-learning based algorithm, as in AlphaZero, but with novelties: boardsize invariance thanks to fully convolutional neural networks (as in U-Net) and global pooling. This allows growing architectures, meaning the program can learn on a small board, and then extrapolate on a large board.
Solving Havannah is PSPACE-complete with respect to the size of the input graph. The proof is by a reduction from generalized geography and is based on using ring-threats to represent the geography graph. In detail, since Lichtenstein and Sipser have proved that generalized geography remained PSPACE-hard even if the graph is only bipartite and of degree at most 3, it only remains to construct an equivalent Havannah position from such a graph, which is accomplished by constructing various gadgets in Havannah.
- Handscomb, Kerry, ed. (Winter 2002). "Front Cover". Abstract Games. Carpe Diem Publishing (12). ISSN 1492-0492.
- As clarified by Freeling at http://www.mindsports.nl/index.php/arena/havannah/49-havannah-rules; Schmittberger's book wrongly states that a ring should surround at least one vacant cell.
- Schmittberger, R. Wayne (1992), "Havannah", New Rules for Classic Games, John Wiley & Sons, Inc., pp. 116–17, ISBN 978-0471536215
- "Little Golem".
- "Human against Computer: 7-3 - Press release".
- facebookincubator/Polygames, Facebook Incubator, 2020-05-28, retrieved 2020-05-29
- "Open-sourcing Polygames, a new framework for training AI bots through self-play". ai.facebook.com. Retrieved 2020-05-29.
- Cazenave, Tristan; Chen, Yen-Chi; Chen, Guan-Wei; Chen, Shi-Yu; Chiu, Xian-Dong; Dehos, Julien; Elsa, Maria; Gong, Qucheng; Hu, Hengyuan; Khalidov, Vasil; Li, Cheng-Ling (2020-01-27). "Polygames: Improved Zero Learning". arXiv:2001.09832 [cs.LG].
- Bonnet, Édouard; Jamain, Florian; Saffidine, Abdallah (14 August 2013). Havannah and TwixT are PSPACE-complete. The 8th Intl. Conf. on Computers and Games. Keio University, Yokohama, Japan. arXiv:1403.6518. doi:10.1007/978-3-319-09165-5_15.