Five in a row is one of the simplest strategy games, and its history is less certain than its rules. This page keeps to what is well documented and says so where the record is unclear.
Uncertain early origins
Games where players try to line up stones are old and widespread, and claims are often made that gomoku itself is many centuries old in China or Japan. The early evidence for the specific game is thin, and popular histories repeat stories that are hard to check. What is clear is that the game as it is played today grew up in Japan, using the same board and stones as Go.
Gomoku in Japan
The Japanese name gomoku comes from words meaning five pieces, and the game was widely played in Japan by the late nineteenth century, usually on a Go board. In 1899 the Japanese journalist Kuroiwa Ruikō proposed the name renju, meaning connected pearls, for a more serious form of the game, and over the following decades Japanese players introduced restrictions on Black to offset the advantage of moving first. The modern Renju rules, with forbidden double threes, double fours and overlines for Black, came out of that process.
From the Go board to 15 by 15
Because it was played with Go equipment, early gomoku used the 19 by 19 Go board. Renju players later standardised on a smaller 15 by 15 board, and that size is now usual for tournament gomoku and for most apps, including this one. The smaller board matters more than it seems: edges come into play sooner, so lines near them close faster, and openings that work on a big board can run out of room.
Why Black was restricted
Players noticed long before computers that the first player wins more often. The Japanese response was to make Black’s strongest patterns illegal rather than to change the board or the goal. A double three, which is often the start of a forced win, became a foul for Black, and so did a double four and a line longer than five. White was left unrestricted. Over the twentieth century these rules were refined several times, and they remain the main difference between Renju and plain gomoku.
Spread to other countries
The game travelled under many names. In Britain it was known by the late nineteenth century as go-bang, and gobang is still a common name in English and in China. In Korea it is called omok, also meaning five stones. In Vietnam a related game called caro is popular, usually with a rule that a five blocked at both ends does not win. These variants are close enough that players moving between them mostly need to agree on the overline and blocking rules before starting.
Renju becomes international
The Renju International Federation was founded in 1988, and world championships in Renju began the following year. Countries with strong Renju communities have included Japan, Russia, Estonia, Sweden and China. Renju has its own set of 26 standard openings with traditional Japanese names and its own swap procedures for choosing colours.
Computers and the first-player advantage
Five in a row was an early target for computer game research because its rules are simple and its board is large. In the 1990s, the Dutch researcher L. Victor Allis and his colleagues used computer search to show that on a 15 by 15 board the first player can force a win in both freestyle and standard gomoku when there are no opening rules. The result did not change casual play, since no human plays perfectly, but it confirmed why serious players use restrictions or swap-based openings.
Modern tournament gomoku
Alongside Renju, tournament gomoku is played with simpler rules and opening procedures such as Swap2, in which the first player places three stones and the second player decides between taking a colour or adding two more stones and handing the decision back. These rules aim to make the opening fair without the forbidden moves of Renju. Engines for gomoku and Renju are now far stronger than human players, and there are regular competitions between programs.
Related games
Several commercial games build on the same idea. Pente, published in the United States in the 1970s, adds captures of pairs of stones. Connect Four drops discs into a vertical grid and needs only four in a row. Both are distinct games, but the habit of counting open ends carries over.
A note on sources
Much of what circulates online about the game’s ancient past is repeated without references. When a history claims a precise date for the invention of gomoku, treat it with caution unless it names a document. This page will be updated if better-sourced facts are found; corrections are welcome through the contact page.
Where this site fits
Gomoku Live uses exact-five rules with no forbidden moves and no opening procedure, which is the simple form most people learn first. The exact-five article compares it with Renju and freestyle, and the glossary explains terms such as overline and Swap2.