lans.cloud Tools

Hex Board Game — 2 Player Same Screen

Play Hex free online, 2 players on one screen. Red connects top to bottom, Blue left to right, on a 7, 9, or 11 board — with the pie rule for a fair game. No sign-up.

Set up your Hex game

Bigger boards take longer and reward planning. 11×11 is the tournament standard; 7×7 is a quick two-minute game.

Going first is a big edge in Hex, so after Red’s opening move Blue gets one chance to steal it. This one rule makes the game fair — leave it on unless you’re teaching the basics.

Back up or move it to another device.

Was this tool helpful?
Support this site

The Classic Connection Game, Free in Your Browser

Hex is a two-player strategy game played on a rhombus of hexagons. The rules fit in two sentences: players take turns placing one stone of their colour on any empty cell, and the first to link their two sides of the board with an unbroken chain wins. Red connects the top edge to the bottom edge, Blue connects the left edge to the right edge — the coloured borders on the board show exactly whose side is whose. That is the entire game, and it is deep enough to have kept mathematicians busy for eighty years.

Invented Twice, by Piet Hein and John Nash

Hex was discovered independently by two people. The Danish mathematician and poet Piet Hein introduced it in 1942, and the mathematician John Nash reinvented it around 1948 as a graduate student at Princeton, where classmates called it “Nash”. Nash was drawn to a beautiful fact about the game that a simpler-looking board like noughts and crosses does not share.

The No-Draw Theorem

Hex can never end in a draw. Fill the board completely, in any arrangement whatsoever, and exactly one player will have a winning connection — never both, never neither. It sounds too neat to be true, but it is a proven theorem, and it is equivalent to a famous result in topology (the Brouwer fixed-point theorem). We take the honest, nerdy route to prove it here: the automated test suite for this page fills thousands of random boards and checks, every time, that exactly one side is connected. If our board maths were wrong, that test would fail — so the game you are playing is verified draw-proof by brute force, not just by our word.

Why the First Player Wins — and How the Pie Rule Fixes It

Because there are no draws, one player must have a winning strategy, and a short argument called strategy-stealing shows it is the first player: if the second player had a winning strategy, the first player could just place a stone anywhere and then follow that same strategy, with a spare stone that can only ever help. That is a genuine edge, which is why serious play uses the pie rule: after the opening move, the second player may swap and take it. Now nobody wants to open too strongly, and the game is fair again. It is the same idea as “you cut, I choose”. Toggle the pie rule on in setup, and try the same math-classic thinking in our Nim game, the drawn-curve territory battle of the sprouts game, or a lighter connection race in four in a row. If you like hex grids for other reasons, the Minecraft circle generator plots shapes onto a block grid the same way.

Which Board Size to Play

The tournament standard is 11×11, big enough for the game’s full strategic depth. Smaller boards are faster and friendlier for learning — 7×7 is a brisk game you can finish in a couple of minutes. The shortest possible win is always a straight line from one side to the other, so it takes exactly as many stones as the board is wide; the table below is computed from the same grid maths the win checker uses.

Hex board sizes

BoardCellsShortest winning pathGood for
7 × 7497 stonesA quick game or learning the rules
9 × 9819 stonesA middle-ground game with real depth
11 × 1112111 stonesThe tournament standard — deepest strategy

Cells = size²; the shortest winning path is a straight line across, exactly `size` stones. Both are derived from the same grid math the win checker walks, so the table can’t drift from the game.

Frequently Asked Questions

How do you win at Hex?

Build an unbroken chain of your stones linking your two sides of the board. Red wins by connecting the top edge to the bottom edge; Blue wins by connecting the left edge to the right edge. Stones are never moved or captured once placed, so every turn is about extending your own chain while blocking your opponent’s — and because blocking them also builds toward your own connection, defence and attack are the same move.

Can Hex end in a draw?

No — Hex can never end in a draw, and that is its most famous property. Once the board is completely filled, exactly one player always has a winning connection and the other never does. It is a genuine mathematical theorem (John Nash proved it), and the test suite behind this game proves it by brute force: it fills thousands of random boards and checks that exactly one side is connected every single time.

What is the pie rule in Hex?

The pie rule (also called the swap rule) fixes Hex’s first-player advantage. After the first player makes the opening move, the second player may either reply normally or “swap” — steal that move and take it as their own. It works like cutting a cake: whoever cuts wants the two pieces equal, because the other person picks first. So the opening player avoids a too-strong first move, and the game stays balanced. Toggle it on in setup and Blue gets the one-time choice after Red’s first stone.

Did John Nash invent Hex?

Hex was invented twice, independently. The Danish mathematician and poet Piet Hein introduced it in 1942 as “Polygon”, and John Nash — later a Nobel laureate — reinvented it around 1948 while a graduate student at Princeton, where it was nicknamed “Nash” and “John”. Nash proved that the first player can always win with perfect play, and the no-draw property is often named after him.

What size is a standard Hex board?

The standard tournament board is 11×11. Smaller boards play faster and are easier to learn — 7×7 is a good two-minute game and fine for teaching the rules — while larger boards reward deeper planning. This tool offers 7×7, 9×9, and 11×11 so you can match the board to how much time and thinking you want.