Gomoku rules
Five stones in a row win. These are all the rules Hoshi uses, with a diagram for each idea.
The goal
Gomoku is played on a board of 15 × 15 lines, and the stones go on the intersections, not in the squares. Whoever first has five of their own stones in an unbroken line wins. The line can run across, up and down or diagonally. A gap or a stone of the other colour in between means it is not five.
How a game goes
Black starts. After that the players take turns, and each move places exactly one stone on an empty point. Stones are never moved and never captured: once a stone is on the board, it stays there until the end of the game. That is the biggest difference from Go, which uses the same board and stones.
Because nothing ever disappears, every stone does two jobs at once. It builds your own lines and gets in the way of your opponent’s.
When the game ends
The game ends as soon as one player completes five in a row. If all 225 points are filled and nobody has five, it is a draw. In online games you can also resign at any time, and if your clock runs out, you lose on time.
“5 or more” or “Exactly 5”
Hoshi offers two win rules. With “5 or more”, also called freestyle, any unbroken line of at least five stones wins, so six or seven in a row win as well. With “Exactly 5”, only a line of exactly five wins. A line of six or more is called an overline and does not count.
One detail: if a single move makes an overline in one direction and an exact five in another, the five still wins. Neither rule has forbidden moves. Against the bots you pick the rule yourself before the game.
The Swap2 opening
Moving first is a big advantage in Gomoku, and Swap2 balances it. The idea is simple: the player who sets up the opening does not know which colour they will end up with, so they have every reason to make the position even. It works in three steps:
- Player 1 places three stones: Black, White, Black.
- Player 2 chooses: take Black, take White, or place two more stones, first White, then Black.
- If player 2 placed two more stones, player 1 now picks the colour.
After Swap2
Once the colours are chosen, White moves next, and the game continues under “5 or more”. Swap2 is required in rated online games. In other games it is optional.
Board and notation
Hoshi names every point by column and row. The columns run from a to o, starting on the left; the rows run from 1 to 15, counted from the bottom. The centre point is h8. So a diagonal five from f6 to j10 means the stones on f6, g7, h8, i9 and j10.
Renju and other variants
Gomoku has other rule sets too. The best known is Renju, which forbids certain moves for Black to offset the first-move advantage. Hoshi does not play Renju. It offers “5 or more”, “Exactly 5” and the Swap2 opening.
Frequently asked questions
Who moves first in Gomoku?
Black places the first stone, usually in the centre. With Swap2, the three opening stones come first and the colours are decided afterwards.
Does six in a row win?
Under “5 or more”, yes. Under “Exactly 5”, no: only a line of exactly five stones wins.
Can stones be captured in Gomoku?
No. Unlike in Go, stones are never captured or moved. Every stone stays where it was placed.
What happens if the board fills up?
If all 225 points are taken and nobody has five in a row, the game is a draw.
Why is Swap2 used?
Because the first player has a large advantage. In Swap2 the player who places the opening stones does not know which colour they will get, so a lopsided opening would only hurt them.
Does a five have to be in a straight line?
Yes. Five stones next to each other in one line, across, up and down or diagonally, with no gap and no stone of the other colour in between.