About Hex: Play the Connection Board Game Online Free
No. However the board fills up, exactly one player will have a connecting chain. This was proved mathematically and is one of the reasons the game is famous.
By the ToolFluency team · Updated November 2026
Hex is the connection game invented by Piet Hein in 1942 and again by John Nash in 1948. Two players take turns placing stones on a board of hexagons: Red tries to join the top and bottom edges with an unbroken chain, Blue the left and right edges. Stones never move and are never taken, and because every cell touches six others a full board always has a winner, so there are no draws. The rules take a minute to learn; the strategy lasts a lifetime. Play on 9x9, 11x11 or 13x13, with the swap rule, against the computer at three levels or a friend.
How to play Hex
- Choose vs Computer and a level, or 2 Players, and a board size. Red moves first.
- Tap an empty cell to place a stone. Red wins by joining the two red edges (top and bottom) with a chain of touching red stones; Blue wins by joining the two blue edges (left and right). The corner cells belong to both edges.
- Stones never move and are never captured.
- The swap rule: after Red’s first stone, Blue may press Swap instead of playing. Red’s stone turns blue on the mirror cell (row and column exchanged), and Red moves again. So Red should open with a move that is neither too strong nor too weak.
- There are no draws: a full board always has exactly one winning chain.
- Hint suggests a cell, and Undo takes back your last move.
Examples
Strategy tips
- The two-bridge is the key shape: two stones with two empty cells between them that touch both. If your opponent takes one, take the other, and your stones stay connected.
- Play near the centre early: it reaches both of your edges.
- Do not try to block by sitting right next to an enemy stone; block from a distance, where you have room to manoeuvre.
- Every move that blocks your opponent also builds your own connection, since only one of you can win.
- An edge template: a stone on the second row from your edge, with two empty cells below it, is already connected to that edge.
Example: the swap
Red opens in the centre of an 11x11 board. Centre openings are known to win with perfect play, so Blue swaps: the stone becomes blue on the mirror cell, and Red has to find a way to win against a strong first stone. That is why good Red players open near an edge or a corner instead.
Frequently asked questions
Can Hex end in a draw?
No. However the board fills up, exactly one player will have a connecting chain. This was proved mathematically and is one of the reasons the game is famous.
What is the swap rule?
The first player has a big advantage in Hex. With the swap rule, after Red’s first stone Blue may take it over: it becomes a blue stone on the mirror cell, and Red moves next. Red therefore opens with a move that is about even, which makes the game fair.
Which board size should I play?
9x9 is quick and good for learning. 11x11 is the classic size, and 13x13 gives longer, deeper games.
How strong is the computer?
The computer plays thousands of random games from the current position and favours the moves that win most often (Monte Carlo tree search). Easy runs a few hundred, Normal a few thousand, and Hard as many as it can in a second. It always takes a winning cell and blocks yours. Your record is kept for each level and board size.
Who invented Hex?
The Danish poet and mathematician Piet Hein invented it in 1942. John Nash, the mathematician from A Beautiful Mind, came up with it independently at Princeton in 1948.
Part of ToolFluency’s library of free online tools for Games & Fun. No account needed, no data leaves your device.