Play Hex — Free

The classic connection game of pure strategy. Place stones on an 11×11 board of hexagons and be the first to link your two sides with an unbroken chain — before the computer connects its own. There are no draws in Hex: someone always wins.

You (top ↕ bottom)
0
Computer (left ↔ right)
0
Moves
0
Your move — connect the top and bottom edges.
You (red) connect top ↔ bottom · Computer (blue) connects left ↔ right

What is Hex?

Hex is a two-player abstract strategy game played on a rhombus-shaped board of hexagons, most often eleven cells on a side. It was invented independently by the Danish scientist and poet Piet Hein in 1942 and, a few years later, by the mathematician John Nash — the same John Nash of game-theory fame — which is why it is sometimes still called "Nash". The rules are almost impossibly simple: players take turns placing a single stone of their colour on any empty hexagon, and a stone once placed is never moved or removed. Yet from those bare bones grows a game of astonishing depth, one that mathematicians and computer scientists have studied for decades precisely because it is so easy to state and so hard to master.

Each player owns two opposite edges of the diamond. In this vygam version you play the red stones and own the top and bottom edges, so your goal is to build an unbroken chain of red hexagons that runs from the top side all the way to the bottom. The computer plays blue and owns the left and right edges, connecting side to side. The two goals cross each other, so every stone you place both advances your own path and threatens to block the computer's. The most beautiful fact about Hex is that it can never be tied: when the board is full, exactly one player must have made their connection. There is no way to wall off your opponent without simultaneously completing a bridge of your own.

How to Play Hex

1Players alternate turns. On your turn, click any empty hexagon to place one of your stones. Stones are never moved or captured once placed.
2You are red and own the top and bottom edges. The computer is blue and owns the left and right edges.
3Win by completing an unbroken chain of your colour that touches both of your sides — top-to-bottom for you, left-to-right for the computer.
4Adjacent hexes count as connected when they share an edge — each interior cell has six neighbours. The instant a chain links your two sides, the game ends and you win.
5There are no draws: a completed board always has exactly one winner, so every game is a genuine race to connect first.

A quick word on the opening: moving first is a real advantage in Hex, which is why competitive play often adds the swap rule — after the first stone, the opponent may take that move for themselves. This version keeps things straightforward and lets you simply play it out, but it is worth knowing that opening dead-centre is considered so strong that it is usually swapped away in serious games.

Hex Tips & Strategy

Because the rules are so spare, all of Hex's difficulty lives in strategy. A beginner sees a scramble of stones; an experienced player sees threats, bridges and races measured in tempo. These four ideas will lift your game quickly against the computer and against friends.

  1. Use the bridge

    The single most important pattern in Hex is the "bridge": two of your stones placed a knight's-move apart so that they share two empty connecting cells. Even though the stones are not yet touching, they are effectively connected — if the opponent plays one of the two gap cells, you simply take the other. Stringing bridges together lets you cover ground twice as fast as solid chains while staying safe, and recognising when a connection is already secure saves you precious moves.

  2. Play toward the centre first

    Stones in the middle of the board touch more territory and support more potential connections than stones crammed against your own edge. Strong Hex play usually starts by building a flexible spine through the centre and only later reaches out to the two sides you must reach. Controlling the middle also lets you interfere with the opponent's crossing path, since their connection has to pass through the same congested heartland.

  3. Attack and defend with one stone

    Every move in Hex does double duty. Because your goal and the opponent's goal cross at right angles, a stone that extends your own chain almost always sits in the way of theirs as well. Look for moves that both lengthen your connection and cut the computer's shortest route — those dual-purpose plays are worth far more than a stone that only does one job. When you are behind, focus on the blocking half; when ahead, focus on racing.

  4. Count the race

    Late in a game Hex often comes down to a pure race: whoever needs fewer remaining moves to finish their connection wins, because the other player can never both block and build in time. Learn to estimate the "distance" of each side's shortest remaining path. If your path is shorter, push it through and ignore distractions; if it is longer, stop racing and throw your stones into breaking the opponent's chain before it completes.

Why Hex Can Never End in a Draw

Most board games allow ties, but Hex is special: it is provably impossible to draw. Imagine the board completely filled with red and blue stones. The claim is that exactly one colour must have formed a chain linking its two sides. This is not a rule the designers added — it is a theorem, closely related to a deep result in topology called the Brouwer fixed-point theorem, and John Nash used a clever "no-draw" argument to help show that the first player has a winning strategy on any board size. In practical terms it means you never have to settle for a stalemate: if you have not lost, you can still win, right up until your opponent's chain actually closes.

That guarantee changes how you should think at the table. Because a full board always has a winner, blocking your opponent is never a purely defensive act — every wall you build to stop their connection is simultaneously a step toward your own. This is what gives Hex its famous elegance: offence and defence are two sides of the same stone. Once the idea clicks, the game stops feeling like a scramble and starts feeling like a single, connected battle for one continuous line across the board.

Hex vs Other Connection Games

If you enjoy the territorial thinking of Go, the five-in-a-row races of Gomoku, or the flipping duels of Reversi, Hex will feel like a purer, more skeletal cousin. Where Go rewards surrounding territory and Gomoku rewards building a line of exactly five, Hex asks only one question — can you connect your two sides? — and hides enormous complexity behind that single goal. There are no captures as in Go or Reversi and no fixed target length as in Gomoku; there is just the growing tension of two crossing paths, and the certainty that one of them will get through.

What Hex shares with all of those games is the reward for reading ahead. Just as a Go player counts liberties and a Gomoku player spots an open four, a Hex player learns to see bridges, blocks and races several moves before they resolve. It is a wonderful game to keep in your browser for a quick strategic workout: a single match takes only a few minutes, the rules never get in the way, and there is always another, deeper layer of tactics waiting the next time you sit down to connect.

FAQ

Is Hex free to play?

Yes — Hex on vygam is completely free and plays instantly in your browser. There is no download and no sign-up; you play against the computer on phone, tablet or desktop whenever you like.

How do you win at Hex?

You win by forming an unbroken chain of your own stones that connects your two assigned sides of the board. You own the top and bottom edges and must link them top to bottom; the computer owns the left and right edges and tries to link those. The first player to complete a connecting chain wins immediately.

Can a game of Hex end in a draw?

No. Hex can never end in a draw. It is a mathematical theorem that once the board is full, exactly one player must have formed a connecting chain — it is impossible to block your opponent without completing your own connection. That guarantee is one of the things that makes Hex so elegant and so strategically deep.

What is the swap rule in Hex?

Because moving first is a strong advantage in Hex, many games use the swap rule: after the first player places a stone, the second player may choose to take over that move instead of replying. This discourages an overpowering opening and keeps the game fair. This version keeps play simple, but understanding the swap rule helps you avoid opening in the very strongest central cells when it applies.

What size is a Hex board?

Hex is played on a rhombus (diamond) of hexagons, and the most common tournament size is 11×11, which is what this version uses. Smaller boards such as 9×9 or larger ones like 13×13 and 19×19 are also played; a bigger board makes each game longer and rewards deeper planning.

Games like Hex