Name
hex: the connection game invented by Piet Hein and, independently, John Nash.
Rules
- Take turns colouring one empty hexagon. Red moves first.
- Red wins by joining the top and bottom edges with an unbroken chain of red cells; Blue by joining left and right.
- Hex can't end in a draw: once the board is full, exactly one side has a chain.
Controls
- Tap an empty hexagon. The last move has a gold outline; the winning chain lights up.
↶ undo takes back to your last move (not after a finished game against the AI). Your win-loss record is kept per AI level and board size.
- Online with a friend shows an invite link to send; paste the reply code your friend sends back to connect. The inviter plays red and moves first; changing the size starts a new game on both boards.
- Keyboard: Tab to the board, arrow keys move between cells, Enter or Space plays.
AI levels
- The AI fills the rest of the board at random thousands of times and favours the cells it owned in the fills it won. It always takes a winning cell and blocks one that would win for you.
- Easy uses 150 fills and picks among its top five. Medium uses 2,500. Hard fills for 1.2 s.
Strategy
The centre is strongest. Two of your cells with two shared empty neighbours form a bridge: if your opponent takes one gap, take the other, and they stay joined. Blocking right in front of a chain rarely works; block from a distance.