
Hex
Play Hex, the classic connection board game, against a Monte Carlo CPU on 7×7, 9×9 or 11×11 boards. Free strategy game in your browser.
About Hex
Hex is a beautifully simple strategy game invented in the 1940s and loved by mathematicians ever since. The board is a rhombus of hexagonal cells carved into a wooden plank, with red edges at the top and bottom and blue edges on the left and right. Players take turns placing a glass stone in any empty cell.
Red wins by building an unbroken chain of stones from the top edge to the bottom edge, and Blue by joining left and right. Because of the hexagonal grid, one player must always succeed, so a game of Hex can never end in a draw. Blocking your opponent and connecting your own sides turn out to be the same thing.
The CPU opponent plays out thousands of random games in its head before every move and picks the cells that win most often. Choose a small board for quick tactical games or the classic eleven by eleven tournament board, and play first as Red or second as Blue.
How to play
Tap an empty cell to place a stone of your colour. Red tries to connect the top and bottom edges, Blue the left and right edges. The first player to complete an unbroken chain between their two sides wins.
Controls
- Tap a cell
- Place a stone
- Arrow keys + Enter
- Choose and place with the keyboard
- Undo button
- Take back your last move
- Esc / P
- Pause
Tips
- Start near the centre: it reaches every edge.
- Two stones with two shared empty neighbours (a bridge) cannot be cut.
- Blocking from a distance works better than placing stones right next to the opponent.
- Playing first is a big advantage, so try Blue for an extra challenge.
Screenshots
FAQ
Is Hex free to play?
Yes. Hex is free and runs in your browser, with no download or account.
Can a game of Hex end in a draw?
No. When the board is full, exactly one player will have connected their two sides, so there is always a winner.
How does the CPU decide its moves?
It simulates thousands of random games from the current position and plays the cell that leads to victory most often.






