⬡ Hex Online

Play Hex online with 2 players. Share a room code to compete with friends. Red wins by connecting left-right, blue by connecting top-bottom.

Host(Connecting left-right)
Guest(Connecting top-bottom)
Match starting!

treatment

  • Click "Create Room" to get a room code and share it with your friend
  • Your friend enters the code with "Join Room" to join
  • Host is red (first player · connecting left-right), guest is blue (second player · connecting top-bottom)
  • Click an empty hexagonal space to place a stone
  • The first player to connect their two opposite sides without a gap wins
  • There are no draws - a winner is always determined

What is Hex Online?

Hex is an elegant strategy game played on an 11×11 hexagonal board where two players race to connect opposite sides with their color. The first player to create an unbroken path from their side to the opposite wins. This deceptively simple goal creates deep strategic complexity. Hex rewards forward planning, territorial control, and adaptability. It's a perfect game for players who enjoy chess-like strategic depth without memorization burdens.

How to Use

Join a room with a friend and select your color (red or blue). Players alternate placing their color on empty hexagons. Your goal is to form a continuous path connecting your two opposite board edges—red connects top to bottom, blue connects left to right. The board enforces this geometry, so winning is always possible and Hex never ends in a draw. The game automatically detects when a path is completed. Strategy involves claiming territory while blocking opponent routes.

Use Cases

• Strategy game enthusiasts: Players who enjoy Go and Chess appreciate Hex's mathematical elegance and strategic depth.
• Mathematical thinking: Hex illustrates graph connectivity, spatial strategy, and game theory principles beautifully.
• AI research and training: Computer scientists study Hex because it's complex enough to challenge AI but simple enough to analyze rigorously.
• Competitive gaming: Hex tournaments and online communities have grown because the rules are simple but mastery takes years to develop.

Tips & Insights

Early board position control matters more than local tactics. Connecting your edges early limits opponent options significantly. Bridge patterns (linked hexagons forming defensive chains) are powerful because they cannot be easily blocked. The player with the first move has a theoretical advantage, so some tournaments use swap rules where the second player can claim first-player advantage.

Frequently Asked Questions

How do I start an online match?

Click "Create Room" to get a 4-character room code and share it with your opponent. When they enter the code with "Join Room", the game starts.

How are first and second players determined?

The host who creates the room plays as red (first player · connecting left-right), and the guest who joins plays as blue (second player · connecting top-bottom).

Are there draws?

No, draws are mathematically impossible in Hex. When the board is full, one player's connection will always be complete.

Is data sent to the server?

Game progress is synchronized in real-time via WebSocket. No data is saved after the game ends.

What size is the Hex board?

The game uses an 11×11 hexagonal board, which balances strategic complexity with reasonable game length and accessibility.

How long does a typical Hex game last?

Most games take 15-30 minutes depending on player experience and playstyle; faster players may finish in 10 minutes, while slower strategic play can extend beyond 30 minutes.

What's a strong opening strategy?

Many skilled players favor central or edge positions because they maximize flexibility; playing in the center helps you avoid getting trapped by your opponent.

Can I undo moves or correct mistakes?

No, all moves are permanent once placed on the board, so always double-check before confirming your move to avoid errors.

Can I resign if I'm losing?

Yes, you can resign at any time during the game, and your opponent will immediately be declared the winner.

Does the first player have an advantage?

The first player (usually the host) has a slight inherent advantage from moving first; the game design attempts to balance this, but it remains a minor factor in high-level play.