Free tools & games for everyone
Free · No sign-up · No accounts
Play Havannah on a hexagonal board: win with a ring, a bridge between two corners or a fork joining three sides. Vs computer or a friend.
| Tap or click | Place a stone on a cell |
|---|---|
| Arrow keys | Move the cursor (click the board first to give it focus) |
| Enter or Space | Place a stone on the cursor cell |
| Undo | Takes back your last move (and the computer’s reply) |
Havannah was invented by the Dutch game designer Christian Freeling in 1979. It is famous among programmers because computers found it hard for a long time: the three winning shapes pull in different directions, and a quiet move far from the action can decide the game.
The computer wins at once when it can and blocks a one-move win. Otherwise it plays Monte Carlo: it fills the board at random hundreds or thousands of times, counting bridges and forks, and picks the cell that most often belongs to its winning games. Hard plays the most games.
The tests replay random games and check every ring, bridge and fork against a separately written Python version that labels the enclosed areas in its own way, and check that the computer takes a winning cell and blocks yours.
A fresh daily puzzle every morning, and new tools added every month.
Browse every product