Free logic and strategy game

Play Hex Online

Place stones, connect your two sides, and block your opponent before they build an unbroken chain. Play Hex against the computer or share the board in two-player mode.

Board size
Mode
AI difficulty
Turn Pink
Goal Left to right
Moves 0

Choose an empty hex to start.

Preparing the Hex board

Choose a board size, pick two players or an AI opponent, then connect your sides with an unbroken path.

Blue
Pink
Blue
Pink

What is Hex?

Hex is a classic two-player strategy board game played on a diamond-shaped grid of hexagons. One player tries to connect the left and right sides of the board, while the other player tries to connect the top and bottom sides.

Players take turns placing one stone on any empty hex. Stones never move and are never captured. The first player to create a continuous chain between their two sides wins the game.

  • Pink connects left to right.
  • Blue connects top to bottom.
  • Place one stone on each turn.
  • Adjacent stones of your colour form chains.
  • A completed chain wins immediately.

How to play Hex online

Start by choosing a board size. A 5x5 board is fast and friendly for learning, 7x7 gives a balanced quick match, 9x9 adds real strategic space, and 11x11 is the classic deeper challenge.

Choose two-player mode to play on the same screen, or choose AI mode to practise against the computer. The Easy AI plays casual central moves, Medium looks for wins and blocks, and Hard evaluates connection distance before choosing a move.

  • Click or tap an empty hex to place your stone.
  • Use smaller boards to learn opening patterns.
  • Use larger boards for richer strategy.
  • Switch AI difficulty without leaving the page.
  • Start a new game whenever you want a fresh board.

Hex strategy for beginners

The main idea in Hex strategy is connection. A move can be strong even when it does not touch your existing stones, because it creates future routes that are hard to block. Central stones are flexible, while edge stones can finish a path quickly.

Blocking matters, but only blocking usually loses. Good Hex moves help your own path while making the opponent's path narrower. Look for moves that do both at once.

  • Build several possible paths instead of one fragile line.
  • Use the centre to keep options open.
  • Watch both your route and your opponent's route.
  • Try to make blocks that also improve your own chain.
  • Near the edge, look for short forcing connections.

AI difficulty levels

Easy AI is useful while you are learning the rules. It tends to like central spaces but can miss urgent threats. Medium AI checks for immediate wins and blocks, so you need to build threats over several turns.

Hard AI compares how close each player is to connecting their sides, favours flexible bridges, and tries to slow your shortest route. It is not a tournament engine, but it gives a much sharper online Hex practice game.

Why Hex is a logic and strategy game

Hex rewards planning, pattern recognition and spatial logic. There is no hidden information, no dice and no guessing. Every stone stays on the board, so each choice creates a permanent constraint.

That makes Hex a strong fit for players who enjoy logic puzzle games but want a competitive board game. The rules are quick to learn, while the strategy keeps growing as board sizes increase.

FAQ

Hex FAQ

Can I play Hex against the computer?

Yes. Choose Vs AI mode, then select Easy, Medium or Hard difficulty.

Can two people play Hex on this page?

Yes. Choose 2 players and take turns placing stones on the same board.

What board sizes are available?

This online Hex game includes 5x5, 7x7, 9x9 and 11x11 boards.

Can Hex end in a draw?

No. With perfect rule play, a filled Hex board always contains a winning connection for exactly one player.

Game over