Play Hex Online
Connect your two sides of the board with an unbroken chain of stones before your opponent does. A timeless strategy game with no possibility of a draw.
Red connects top ↔ bottom • Blue connects left ↔ right
What Is Hex?
Hex is a two-player abstract strategy game played on a rhombus-shaped board of hexagonal cells. It was independently invented by Danish mathematician Piet Hein in 1942 and by John Nash (the Nobel-prize-winning mathematician portrayed in A Beautiful Mind) in 1948. Despite its simple rules, Hex has deep strategic complexity and has been studied extensively in combinatorial game theory.
Rules of Hex
- The board: A rhombus (diamond) of hexagonal cells. Standard tournament size is 11×11, but this version offers 7×7 through 14×14.
- Sides: Each player owns two opposite edges of the board. Red connects top and bottom; Blue connects left and right.
- Turns: Players alternate placing one stone of their colour on any empty cell.
- Winning: The first player to form an unbroken chain of their stones connecting their two sides wins.
- No draws: It is mathematically impossible for a Hex game to end in a draw — every completed board has a winner.
The Swap Rule
Because the first player has a theoretical advantage, tournament Hex uses the swap rule (also called the pie rule). After the first player places a stone, the second player may choose to swap colours, taking ownership of that stone and side. This forces the first player to choose a balanced opening move rather than an obviously powerful one. The swap rule is available in this version for human vs AI games.
Strategy Tips
1. Think in Connections, Not Territory
Unlike Go, Hex is about connectivity, not surrounding area. A single chain connecting your two sides wins — even if your opponent controls most of the board. Focus on building a bridge between your edges.
2. Use Bridge Connections
A bridge is a pair of stones separated by one empty hex, where both shared neighbours are empty. Bridges are virtually connected: if your opponent blocks one path, you can complete the other. Chains of bridges are a powerful way to reach across the board.
3. Play in the Centre
The centre of the board is strategically valuable because stones placed there radiate influence in all directions. Edge cells connect to fewer neighbours and are generally weaker unless they directly anchor a bridge to your side.
4. Block Efficiently
When blocking your opponent, try to place stones that simultaneously threaten your own connection. A purely defensive move wastes a tempo — the best moves attack and defend at the same time.
5. Learn the Ladder
A ladder is a forcing sequence where one player must keep blocking in a diagonal line. Ladders in Hex work similarly to Go: if the ladder reaches the edge, the attacking player connects; if a blocking stone is already in the path, the defender succeeds. Recognising ladders early saves many moves.
Board Sizes
- 7×7: Fast games, great for learning. Tactics dominate.
- 9×9: A good intermediate size with room for strategy.
- 11×11: The standard tournament size. Rich strategic play.
- 13×13: Deep, complex games for experienced players.
- 14×14: The largest board — marathon-length battles.
Mathematical Significance
Hex holds a special place in mathematics. John Nash’s non-constructive strategy-stealing argument proves the first player has a winning strategy, but does not reveal what that strategy is. The theorem that every Hex game must have a winner is equivalent to the Brouwer fixed-point theorem, a foundational result in topology. Hex has also been used to study computational complexity — determining the winner of a Hex position is PSPACE-complete.
Frequently Asked Questions
More Strategy Games
Enjoy Hex? Try these other free games: