Puzzle · Strategy

Hex

A strategic board game where players try to connect opposite sides of a hexagonal grid.

Overview

Connect your two opposite sides of the board and you win — that is the whole of Hex, and yet it is one of the most elegant abstract strategy games ever designed. Played on a rhombus of hexagonal cells, Hex has a remarkable property proven early in its history: with perfect play the first player always wins, and draws are mathematically impossible, because once every cell is filled one side's chain must connect its two edges. There is no capturing and no removal, only placement, so the tension is purely about shape and connection. Each move both extends your own potential chain and obstructs the opponent's, and because the board is hexagonal every cell touches six neighbors, which makes blocking trickier than it looks. This build offers several board sizes and an AI opponent, so you can dial the difficulty by changing the grid.

How to Play

Click any empty cell to place your stone; on touch screens, tap the cell. The game is not keyboard-driven, so input is mouse or touch only. One color owns the top and bottom edges, the other owns the left and right, and each placement tries to extend a chain from one of your edges to the other. Because cells are hexagonal, a chain can bend in six directions rather than the four of a square grid, and a single well-placed stone can bridge two halves of an emerging path. The AI replies immediately after your move, and the game ends the instant one side's stones form an unbroken connection between its two assigned edges. Larger boards make the connection harder and the AI tougher, so start small if you are learning the shape of the game.

Tips & Strategy

Build with bridges. A bridge is two of your stones that are two cells apart on a short diagonal, with the two empty cells between them mutually supporting — once you have a bridge, the opponent cannot cut it without spending two moves, which is usually enough time for you to complete it. Work along your shortest path early, because the player who establishes a working chain across the center first usually wins. Do not chase the opponent's stones across the board; instead, block by placing a stone directly on the line they need, ideally one that also extends your own chain. On larger boards, central control matters more, since central stones reach both of your edges in fewer moves. Remember that defense and offense are the same act in Hex — every stone you place to block also sits on a potential path of your own.

Controls

Keyboard
Mouse to place stonesNot keyboard controlled
Mouse
Click to place stone
Touch
Tap to place stone

Features

  • Classic Hex gameplay
  • Hexagonal grid
  • AI opponent
  • Multiple board sizes
  • No draws possible