Play n Tools

Free tools & games for everyone

Free · No sign-up · No accounts

Havannah

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.

How to play

  1. Dark and light take turns placing one stone on any empty cell. Stones never move and are never captured.
  2. Win by making one of three shapes with a single connected chain of your stones:
    • Ring: a loop that surrounds at least one cell. The cells inside may be empty or hold any stones.
    • Bridge: a chain joining any two of the six corner cells (shaded darker).
    • Fork: a chain joining three of the six sides (the lightly shaded rim cells). Corner cells do not count as part of a side.
  3. If the board fills up with no shape, the game is a draw (this is very rare).
  4. Swap rule (optional): after the first stone, light may take it over instead of moving. Then the first player should not open with a stone that is too strong.

Keyboard and touch

Tap or clickPlace a stone on a cell
Arrow keysMove the cursor (click the board first to give it focus)
Enter or SpacePlace a stone on the cursor cell
UndoTakes back your last move (and the computer’s reply)

Tips

  • Two stones with two empty cells between them (a “bridge pattern”) are as good as joined: if your opponent takes one gap, you take the other.
  • Rings are rare in strong play but deadly in casual games: watch for a curl of five stones that needs only one more.
  • A bridge and a fork can share stones. A chain heading for a corner often threatens both at once.
  • Start on a small board. Base 4 and 5 games take a few minutes; base 8 is the classic size for experts.

About this game

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.

See you tomorrow!

A fresh daily puzzle every morning, and new tools added every month.

Browse every product