Play n Tools

Free tools & games for everyone

Free · No sign-up · No accounts

Hex

Connect your two edges with an unbroken chain of stones on a board of hexagons, before your opponent connects theirs. No draws, optional swap rule.

How to play

  1. Players take turns putting one stone on any empty hexagon. Stones never move.
  2. Dark (solid stones) tries to join the top and bottom edges, marked with dark bands. Light (stones with a white dot) tries to join the left and right edges, marked with light bands.
  3. The first player with an unbroken chain of touching stones between their two edges wins. Draws are impossible.
  4. Swap rule: because moving first is a big advantage, the second player may, on their first turn, take over the first stone instead of playing. It flips across the board's long diagonal and becomes light.

Keyboard and touch

Arrow keysMove between hexagons (column letter, row number)
Space or EnterPlace your stone
Tap a hexagonPlace your stone

Tips

  • Start near the middle: a central stone reaches both of your edges.
  • Two stones with two shared empty neighbours (a "bridge") cannot be cut: if your opponent takes one gap, take the other.
  • Blocking right next to an enemy stone rarely works; block from a distance so your wall can do double duty.
  • With the swap rule on, make a first move that is neither too strong nor too weak, so swapping is a hard choice.
  • Hard looks at 20,000 random finished games per move; normal at 1,500; easy at 150.

About this game

Hex was invented by the Danish mathematician Piet Hein in 1942 and again by John Nash in 1948. Because a full board always has exactly one winner, the first player must have a winning strategy (Nash's strategy-stealing argument), though nobody knows it for big boards, which is why the swap rule exists. The computer first takes an immediate win or blocks yours; otherwise it fills the empty board at random thousands of times and plays the cell that most often belongs to its winning fills (a Monte Carlo method). Everything runs in your browser.

See you tomorrow!

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

Browse every product