Gomoku is one idea — five stones in a line — played under several different rule sets. This page compares the four you are most likely to meet: freestyle, standard (exact five), Renju, and the Swap and Swap2 opening rules used in tournament gomoku. It also says plainly which one Gomoku Live uses.
The short answer
| Rule set | What wins | Six in a row | Forbidden moves | Opening |
|---|---|---|---|---|
| Freestyle | Five or more in a row | Wins | None | Black simply moves first |
| Standard (exact five) | Exactly five in a row | Does not win | None | Black simply moves first |
| Renju | Black: exactly five. White: five or more | Forbidden for Black; wins for White | Black only: overline, double four and most double threes | Set opening procedure |
| Swap / Swap2 | Usually exactly five | Usually does not win | None | Stones placed first, colours chosen afterwards |
Gomoku Live uses standard rules: a 15 × 15 board, Black moves first, exactly five in a row wins for either colour, six or more does not, and there are no forbidden moves and no swap opening. The exact-five article shows those rules on practice boards.
Why there are so many rule sets
In plain five-in-a-row the first player has a large advantage. Computer analysis published by L. Victor Allis in the 1990s showed that on a 15 × 15 board Black can force a win in both freestyle and standard gomoku when there is no opening restriction. Nobody plays perfectly, so casual games are still fun, but serious play needed a fix. There are two broad approaches: restrict Black during the game (Renju), or balance the opening so that neither player knows in advance which colour is better (Swap and Swap2).
Freestyle gomoku
Freestyle is the simplest version and the one most people learn on paper. Players alternate placing one stone on any empty intersection, Black first. The first player to make an unbroken line of five or more stones — horizontally, vertically or diagonally — wins. A line of six counts as a win.
Because longer lines also win, freestyle rewards building long chains and makes some defensive gaps useless: if filling a gap would make six, the attacker still wins.
Standard gomoku (exact five)
Standard gomoku changes one thing: only exactly five stones win. A line of six or more is legal to play but does not win along that line. The rule applies equally to both colours, and there are no other restrictions.
This sounds minor, but it changes real positions. A defender can sometimes leave a gap alone when filling it would only make six for the attacker, and an attacker has to check that the finishing square does not join a stone beyond it. This is the rule used in the official gomoku rules of the Renju International Federation (RIF) and on Gomoku Live.
Renju
Renju is a separate, professional game built on five in a row, with its own federation and world championships. It is played on a 15 × 15 board, and it balances the game by restricting Black, who moves first:
- Overline — six or more Black stones in a row is forbidden.
- Double four — a single Black move that makes two fours at once is forbidden.
- Double three — a single Black move that makes two threes at once is forbidden, with an exception: under the international rules a double three is allowed when, in practice, no more than one of the two threes can actually be turned into a straight (open) four.
One rule overrides all three: if the same Black move completes exactly five in a row, Black wins, even if it also forms a shape that would otherwise be forbidden. White has none of these restrictions and wins with five or more in a row. A forbidden move is also called a foul; under the international rules Black loses if White points it out. Renju also uses a set opening procedure that fixes where the first stones go and when colours may be swapped; the procedure used in official events has changed over the years, so check the rules of the event you are entering.
For a Renju player the restrictions shape the whole game. White can win by forcing Black into a position where Black's only defence would be a forbidden move.
Swap and Swap2
Swap rules leave the game itself alone and balance the opening instead. The idea is the same as cutting a cake: one player sets up the start, and the other chooses which side to take.
Swap (sometimes called Swap1)
- The first player places three stones anywhere on the board: two black and one white.
- The second player chooses which colour to play.
- The player with White makes the next move, and play continues normally.
Swap2
Swap2 is the opening used in the RIF's international gomoku rules. It gives the second player one more option:
- The first player places three stones: black, white, black.
- The second player may take Black, take White, or place two more stones (one white, one black) and pass the colour choice back.
- If two stones were added, the first player now chooses a colour. There is no further swap.
- Whoever has White moves next, and the game continues with exact-five rules and no forbidden moves.
The extra option stops the first player from setting up a position that is only slightly better for one side and hoping the opponent misjudges it. Swap2 does not make every opening equal; it makes building a deliberately lopsided opening a bad idea.
Other variants you may see
- Pro and Long Pro openings. Black's first stone goes in the centre, and Black's second stone must be a set distance away from it — at least three intersections for Pro, at least four for Long Pro. They restrict Black's opening instead of swapping colours.
- Caro. A Vietnamese version in which a line of five does not win if both ends are already blocked by the opponent.
- Omok. The Korean name for five in a row. House rules vary from app to app, so check whether a site uses exact five, freestyle or Renju-style restrictions.
Before you play on another site or in a club, check four things: does six win, are there forbidden moves, for which colour, and is there an opening rule?
Questions
What are the official gomoku rules?
The Renju International Federation publishes official gomoku rules for rated competition: a 15 × 15 board, the Swap2 opening, and a win for exactly five in a row; six or more does not win, and there are no forbidden moves.
Is Renju the same as gomoku?
No. Renju is a related game with restrictions on Black — overline, double four and, with some exceptions, double three — and its own opening procedure. Gomoku has no forbidden moves.
Does six in a row win in gomoku?
In freestyle gomoku, yes. In standard gomoku, Swap2 gomoku and on Gomoku Live, no. In Renju an overline is forbidden for Black and wins for White.
Why does Black have forbidden moves in Renju?
Because the first player has a strong advantage in unrestricted five in a row. Restricting Black's most powerful shapes evens the game.
Which rule set should a beginner learn?
Start with standard (exact five) or freestyle: the only thing to learn is the winning line. Add Swap2 or Renju once you can spot open threes and fours quickly. The open shapes article and strategy guide work under any of these rules.
Does Gomoku Live use Swap2?
No. Black moves first with no swap, and exactly five wins for either colour. See the rules guide for how a game here runs.