Gomoku rules: how to play five in a row
Gomoku is a two-player game of placing stones. Black and White take turns putting one stone on an empty point, and the first to make an unbroken line of five wins. You can learn the rules in a minute; the tactics take far longer.
This page covers the complete rules, the words players use for threats, and how the common rule sets differ, so you know exactly what you are playing here and elsewhere.
The board and the stones
Gomoku is played on a grid of 15 by 15 lines. Stones go on the points where the lines cross, not inside the squares, so the board has 225 points. The nine small dots are only landmarks; the one in the middle, h8, marks the centre.
One player has black stones and the other white. There are enough stones to fill the board, and the game starts with the board empty.
Taking turns
Black always moves first. After that the players alternate, and on each turn you place exactly one stone of your colour on any empty point. You cannot pass.
Stones never move and are never captured. Once a stone is down it stays there for the rest of the game, which is why every placement counts.
Here are the first five moves of a game. The board starts empty and Black moves first. The numbers on the stones show the order they were placed.
Black opens on the centre point, where most games start, because a central stone can grow in every direction. White replies diagonally next to it, a common and solid answer.
Black adds a second stone beside the first, starting a line, and White blocks one end of it before it gets longer.
Black extends to three in a row. One end is blocked by White, so this line can still only grow to the right.
How to win
You win the moment you make an unbroken line of five stones of your colour. The line can run in any of four directions: across, up and down, or along either diagonal.
The game ends straight away, so the opponent never gets to answer a completed five.
This site plays freestyle Gomoku: any unbroken line of five or more wins. Some rule sets count only exactly five, see rule sets compared.
If all 225 points are filled and nobody has five in a row, the game is a draw. Between players who attack, this almost never happens.
Make your move on the board.
Show the answer
Play i7. A line of four does not have to be solid: i6, i8, i9 and i10 become five as soon as the gap is filled.
Fours, threes and threats
Gomoku players name lines by how close they are to five and how many open ends they have. These words come up in every lesson and in the strategy guide.
- Five: the winning line.
- Four: four stones that one more stone would turn into five, including a four with a gap, like f8 g8 _ i8 j8. A four must be answered at once.
- Open four: four in a row with both ends empty. There are two ways to make five, and the opponent can only block one, so an open four wins.
- Three: three stones on a line that one more stone can turn into a four. An open three, with room on both sides, can often become an open four, so it usually has to be blocked too.
- Double threat: one move that makes two threats at once, such as a four and an open three. The opponent can stop only one of them.
Make your move on the board.
Show the answer
Play k8. Black's stones on g8, h8, i8 and j8 form a four. The left end, f8, is already White's, so the right end, k8, is the only point that stops five.
When the opponent has a four, blocking it is the only move that does not lose, unless you can make five yourself first. Check every line on the board before you play.
Rule sets compared
Gomoku goes by many names: five in a row, Gobang, Gomokunarabe (五目並べ) in Japan, Wuziqi (五子棋) in China and Taiwan, Omok (오목) in Korea and Caro in Vietnam. The aim is always five in a row, but the details differ.
| Rule set | What counts as a win | Other rules |
|---|---|---|
| Freestyle (this site) | Five or more in a row | None. Black moves first. |
| Standard Gomoku | Exactly five; six or more does not win | Often combined with an opening rule such as Swap2. |
| Renju | Five; White also wins with six or more | Black may not make a double three, a double four or six in a row. Fixed opening procedures. |
| Caro (Vietnam) | Five, but not when both ends are already blocked | Usually played on a larger grid or on squared paper. |
| Swap2 opening | Depends on the rule set it is used with | The first player places two black stones and one white. The second player then picks a colour, or adds two more stones and lets the first player pick. |
Why all the extra rules? Moving first is a big advantage. In 1994 the computer scientist Victor Allis proved that, with perfect play, Black always wins freestyle Gomoku on a 15 by 15 board. Tournament rules restrict Black or randomise the opening to make the game fair. In casual play the advantage matters far less, and the computer opponent here lets you choose your colour.
The rules on this site
- A 15 by 15 board, starting empty.
- Black moves first, then the players alternate one stone at a time.
- Five or more in a row, in any direction, wins at once.
- There are no forbidden moves and no opening swap.
- A full board with no five is a draw.
Try them against the computer: start on an easy level and move up as your threats get sharper.
Where to go next
Once the rules are clear, the interesting part begins: building threats your opponent cannot answer. The Gomoku strategy guide shows how, and the interactive tutorial walks you through your first wins move by move on a real board.
Learn, Play, and Have Fun!
Ready to play Gomoku online? Start a match against the computer now. No signup, no friction.
