Home › Games › Guides › Gomoku (Five in a Row)

⚫ How to Play Gomoku (Five in a Row)

👥 2 players or vs computer🆓 Free to play

Gomoku (‘five in a row’) is deceptively deep. You and your opponent take turns placing stones on a grid; the first to get exactly five in a row — horizontally, vertically or diagonally — wins. Without extra rules the first player has a powerful attack, so tempo is everything.

▶ Play Gomoku (Five in a Row) now

How to play

  1. Players alternate placing one stone on any empty intersection. Black plays first.
  2. The first player to form an unbroken line of five stones of their colour wins.
  3. Lines longer than five (six or more) do not count as a win in standard Gomoku — you need a clean five (LarzOS uses this common rule).
  4. If the board fills with no five in a row, the game is a draw (rare).

Attack and defence are the same move

Every strong Gomoku move does two jobs: it extends one of your own lines and it interferes with the opponent’s. Purely defensive moves lose because you give up the initiative — and in Gomoku the attacker usually wins the race.

The shapes that matter

ShapeMeaningResponse
Open three (_ X X X _)Threatens to become an open four next moveMust block one end now
Open four (_ X X X X _)Wins next move — two ways to make fiveUnstoppable; you already lost
Simple four (blocked one end)One threat to make fiveBlock the open end
Double threeTwo open threes at once — opponent can only block oneThis is how you win
Four-three forkA four plus an open three from one stoneAlso a winning fork

How to win: build a fork

The winning plan is always the same: manoeuvre until one stone creates two threats the opponent cannot both stop. The two standard forks are the double three (two open threes) and the four-three (a four that must be blocked, freeing your three to become an open four). Set these up two or three moves in advance by placing stones that leave gaps — the classic ‘split three’ (X X _ X) is harder to see and block.

Defence: block early, block the middle

Common mistakes

Frequently asked questions

What is the difference between Gomoku and tic-tac-toe?

Same idea — get your marks in a row — but Gomoku uses a large grid and needs five in a row, which creates real strategic depth. Tic-tac-toe on a 3×3 board is a forced draw; Gomoku is not.

Does the first player win Gomoku?

In free-style Gomoku with no restrictions, the first player wins with perfect play. Tournament versions add opening rules (like ‘swap2’) to balance it. At human level it is still a competitive game.

Do six or more in a row count as a win?

In standard Gomoku, no — you need exactly five unbroken. An ‘overline’ of six is not a win. LarzOS follows this common rule.

What is a ‘double three’?

One stone that creates two open threes at the same time. The opponent can only block one, so the other becomes an open four and wins. It is the most common winning pattern.

How do I stop losing to forks?

Respond to every open three straight away, and look one move ahead for stones that would create two threats at once — block the shared key point before the fork forms, not after.

Can I play Gomoku against the computer?

Yes — choose ‘vs Computer’ and a difficulty. The harder settings look for forks and defend open threes accurately.

More games like this

⭕ Tic-Tac-Toe🔴 Connect 4▪️ Dots and Boxes🎴 Uno

▶ Play Gomoku (Five in a Row) on LarzOS

🎬 Watch Larz Toons · All how-to guides · Play games

Advertise on LarzOS Games →