Gomoku
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Gomoku, Renju and Other Rule Sets

Freestyle, Standard, Renju, Caro and Swap2 compared

Why there is more than one Gomoku

The basic game has a flaw that players noticed long ago: whoever moves first has a big advantage. In 1993 the computer scientist Victor Allis and his colleagues proved it for the unrestricted game on a 15×15 board - with perfect play the first player always wins. Most of the rule sets below exist to reduce that advantage, either by restricting what the first player may do or by changing how the opening is played.

Gomoku Online uses freestyle rules: the simplest version, and the one most people mean when they say “five in a row”.

Comparison

Rule setWinning lineRestrictionsTypical board
FreestyleFive or moreNoneAny; 15×15 or larger
StandardExactly fiveSix or more in a row does not win15×15
RenjuExactly five for Black; five or more for WhiteBlack may not make a double three, a double four or an overline15×15
CaroFive that is not blocked at both endsA five with an opposing stone on each end does not winLarge or unlimited

The rule sets in detail

Freestyle Gomoku

No forbidden moves and no special cases: any line of five or more wins. It is the easiest version to teach and the one used on this site for every board. Its weakness is the first-move advantage, which is why serious freestyle games are usually combined with an opening rule such as swap.

Standard Gomoku

The winning line must be exactly five. A line of six or more - an overline - simply does not count, for either player. This removes a few winning tricks and gives the defender one extra resource: sometimes a line can be made harmless by letting it grow too long. Standard Gomoku is the usual choice for international tournaments, normally together with Swap2.

Renju

Renju is the best-known attempt to balance the game and has its own international federation and world championships. It keeps the first move for Black but takes away Black’s strongest weapons. Black is not allowed to:

  • make two open threes with one move (a double three),
  • make two fours with one move (a double four),
  • make six or more in a row (an overline).

White has no restrictions at all, and a White overline wins. This creates a whole layer of strategy that does not exist in Gomoku: White can win by forcing Black into a position where the only move that stops a White five is a forbidden one. Renju also has strict opening procedures in which the players negotiate the first few stones.

Caro

Caro is the form of the game popular in Vietnam. A line of five wins only if it is not blocked by opposing stones at both ends. A closed four is therefore much less dangerous than in other versions, and defenders have more ways to survive. Games tend to be longer and more positional.

Opening rules

Instead of restricting moves for the whole game, opening rules only change how the first stones are placed.

  • Swap. The first player places two black stones and one white stone anywhere. The second player then chooses which colour to play.
  • Swap2. After the same three stones, the second player may choose black, choose white, or place two more stones (one of each colour) and hand the choice back to the first player.
  • Pro and Long Pro. The first stone goes in the centre and the first player’s second stone must be placed a minimum distance away from it, which rules out the strongest compact openings.

The swap rule needs no software support, so you can use it here when two people play on one device. The openings page explains how.

Related games

GameHow it differs from Gomoku
Tic-tac-toeThree in a row on a 3×3 board. Small enough that correct play always ends in a draw.
Connect FourFour in a row, but stones drop to the lowest free cell of a column, so you cannot play anywhere you like.
Connect6Six in a row. After the first single stone, each player places two stones per turn, which balances the game without forbidden moves.
PenteFive in a row, plus capturing: a pair of stones flanked on both sides is removed, and five captures also win.
GoPlayed with the same board and stones, but the goal is to surround territory, not to make lines.

Mathematicians group these as m,n,k-games: on an m×n board, the first player to get k in a row wins. Tic-tac-toe is the 3,3,3-game and Gomoku on the standard board is the 15,15,5-game.

Which rules should you learn first?

Start with freestyle. Every pattern you learn - threes, fours, forks, forcing sequences - is used in all the other rule sets too. Moving to Standard later means remembering one extra fact about overlines. Moving to Renju means learning the forbidden moves and how White exploits them, which is a real step up but builds on the same foundations. The strategy chapter covers those foundations.

Play freestyle Gomoku