한국어

Hex

Link your two sides of the board before your opponent does

Connect your two sides

Red links top and bottom, Blue links left and right with an unbroken chain of stones. There are no draws.

Modes and controls

Boards 7×7 · 9×9 · 11×11
Computer Easy, Normal, Hard or two players
Tap an empty hexagon to place a stone
Arrow keys and Enter · Undo (U, Ctrl+Z)

How do you play Hex?

Two players take turns placing one stone on any empty hexagon of a diamond shaped board. Red wins by linking the top and bottom edges, Blue by linking the left and right edges, with an unbroken chain of their own stones. Stones never move and are never captured.

The colored border shows which sides each player owns. Red moves first. Hold your phone upright and the board turns to stand tall, with the red edges still at the top and bottom.

What are the rules of Hex?

BoardA diamond of hexagons: 7×7, 9×9 or 11×11. Tournaments use 11×11.
TurnsRed first, then one stone per turn on any empty cell.
NeighborsEach cell touches six others. Touching stones of one color form a chain.
WinningThe first player to join their two opposite edges wins.
DrawsImpossible. One side always connects before the board fills up.
Swap ruleWhen on, Blue may take over Red's first stone instead of playing a move.

What is the swap rule in Hex?

It balances the big first move advantage: after Red places the first stone, Blue may claim it. The stone is mirrored across the board's diagonal and turns blue, and Red moves next.

It works like cutting a cake where the other person picks a slice first, which is why it is also called the pie rule. Red has to find an opening that is neither too strong nor too weak.

How do you win at Hex?

  1. Take the center early. A central stone can reach every edge.
  2. Play bridges. Two stones that share two empty neighbors cannot be cut: if one gap is blocked, fill the other.
  3. Do not block right next to a stone. Adjacent blocks are easy to walk around. Block a cell or two ahead instead.
  4. Make every block a link. The best defensive stones also extend your own chain.
  5. Near an edge, use the second row. A stone on the second row is joined to the edge just like a bridge.

Who invented Hex?

Danish mathematician and poet Piet Hein invented it in 1942, and John Nash came up with it again on his own around 1948. Nash proved the first player always has a winning strategy, yet nobody knows what that strategy is on large boards.

Controls

The Hard computer plays thousands of imaginary games to the end and picks the move that wins most often. The winning chain glows gold, and your record against each level is saved in this browser.

Frequently asked questions

Is Hex free to play?

Yes. Play it free on this page with no sign up, on a computer, phone or tablet.

Can a game of Hex end in a draw?

No. Hex has no draws. It is a proven fact that a full board always contains either a red chain from top to bottom or a blue chain from left to right, never both and never neither.

Does the first player have an advantage?

Yes. John Nash proved that the first player always has a winning strategy with perfect play. That is why serious games use the swap rule, letting the second player take over the first stone.

Which board size should I pick?

Start on 7×7 to learn the shapes, then move up to 9×9 and the standard 11×11. Bigger boards need longer plans.

What is a bridge in Hex?

Two of your stones with two empty cells touching both of them. If your opponent fills one, you fill the other, so a bridge is as good as connected.

How many times can I undo?

As many as you like. Against the computer, undo also takes back its reply so you are back on your own turn. Finished games cannot be undone.

How is Hex different from Gomoku?

Gomoku is about five stones in a row. Hex is about building a path between two edges, and thanks to the hexagonal grid a game can never be drawn.