🎲Blinky Games

Gomoku Β· History guide

The history of Gomoku and Renju

A game that came free with every Go board, a Japanese reform in 1899 to fix its broken balance, and two computer proofs confirming what players always suspected: the first player wins.

The short answer

  • Gomoku arose wherever Go boards were used β€” China, Japan and Korea all have their own name for it.
  • Ruikou Kuroiwa proposed Renju in 1899 with restrictions on Black to fix the game's imbalance.
  • Victor Allis proved in 1993 that freestyle Gomoku is a first-player win.
  • Renju was also proved a first-player win in 2001, which is why balancing openings are now used.
  • Threat-space search, developed to solve Gomoku, is now a standard game AI technique.

A game that came with the Go board

Gomoku exists because Go boards exist. Wherever there is a grid and a bowl of stones, somebody eventually plays a line game on it β€” and five in a row is the version that stuck, in China, Japan and Korea alike.

Ancient ChinaLine games playedon Go boardsc. 1700sGomoku widespreadin Japan1899Renju named andformalised inJapan1988Firstinternationaltournaments1993Allis provesfreestyle Gomokuis a first-playerwin2001Renju also proveda first-playerwin
The game is old and informal; the competitive framework around it is barely a century old.

Line-making games on grids are ancient and appear in many cultures, but the specific five-in-a-row game on a Go board is documented in Japan from at least the eighteenth century, where it was a popular pastime under names including gomoku narabe β€” "five points in a row" β€” and kakugo. In China it is wuziqi (五子棋), in Korea omok.

Renju: the first attempt to fix the game

The competitive problem with Gomoku was obvious to anyone who played it seriously: Black wins. The first player builds threats faster than the second can block them, and between strong players the game becomes a formality.

In 1899 the Japanese journalist and writer Ruikou Kuroiwa proposed a reformed version with a new name, Renju (連珠, "linked pearls"), along with restrictions on the first player. Over the following decades the rules settled into their modern form: Black may not play a double three, a double four, or an overline of six or more.

Renju has been played competitively in Japan since the early twentieth century, and the international body β€” the Renju International Federation, founded in 1988 β€” runs world championships with players from Japan, Russia, Estonia, Sweden, China and Taiwan. Estonia and Russia have produced a remarkable number of champions for such a Japanese-sounding game.

Solved β€” twice, and both times in the first player's favour

In 1993, Victor Allis β€” the same researcher who solved Connect Four β€” proved that freestyle Gomoku on a 15Γ—15 board is a win for the first player. His method, threat-space search, is now standard in game AI: instead of searching all moves, search only the sequences of forcing threats, which collapses the tree enormously.

In 2001, WΓ‘gner and VirΓ‘g showed that Renju is also a first-player win, despite the forbidden moves. The restrictions narrow the advantage but do not remove it.

This is why modern tournaments use balancing openings rather than restrictions alone. The Swap2 rule, and the elaborate opening systems used in professional Renju, exist because both earlier attempts to make the game fair were proved insufficient.

What Gomoku gave to computer science

Gomoku's contribution is threat-space search. Because the game consists almost entirely of forcing moves β€” fours and open threes must be answered β€” a program can ignore everything else and search only the tree of threats. That idea generalises: any game where large parts of the tree are forced can be searched this way.

The engine on this site works in the same spirit: it classifies every empty point by what a stone there would make (five, open four, closed four, open three, two), then searches threats first. It is the practical version of the same insight that solved the game.

Common questions

Where did Gomoku come from?

From Go boards. Five-in-a-row games were played across China, Japan and Korea; the Japanese form gomoku narabe is documented from at least the eighteenth century.

Who invented Renju?

The Japanese writer Ruikou Kuroiwa proposed the reformed game and its name in 1899. The modern forbidden-move rules settled over the following decades.

Why does Black have an advantage in Gomoku?

Because threats build faster than they can be blocked. The first player can create a double threat before the second player has time to neutralise the first β€” which was proved formally in 1993.

Is Renju fair?

Fairer, but not fair: it was proved in 2001 to be a first-player win despite the restrictions. Modern tournaments use balancing openings on top of the Renju rules.

Is Gomoku the same as Connect Four?

No. Both are line-making games, but Connect Four has gravity β€” you choose a column, not a square β€” and needs only four in a row on a much smaller board.

Play Gomoku free, right now

No sign-up, no download β€” it runs in your browser against the computer, a friend on the same device, or a friend online.

Play Gomoku