Five in a Row: Play, Learn, and Understand
Five in a Row is a two-player board game with a 3,000-year history, a formal international ruleset, and a free version you can play right here in the browser.
Interactive Gomoku board. Click an empty intersection to place a stone. Keyboard users can use the arrow keys to move and Enter or Space to place a stone.
What Is Five in a Row?
Two players alternate placing black and white stones on the intersections of a grid. The goal is simple to state: be the first to line up exactly five stones in a row, horizontally, vertically, or diagonally. The difficulty lives in the rules that sit underneath that simple statement — board size, whether a line of six counts as a win, whether Black has restrictions on its opening moves, and how the first move is handled. Two people can sit down and disagree on all of these and still call themselves "playing Gomoku."
The browser game on this page uses an exact-five rule: a line of exactly five wins; a line of six or more does not. It is not a full implementation of the formal Renju ruleset. If you want the tournament rules, see the rules comparison before you try to carry a tactic from one variant to another.
Where the Name Comes From
The game is called by several names depending on where you are. Gomoku (五目並べ) is the Japanese name, literally "five in a row," and is the most widely used term in English. Wuziqi (五子棋) is the Chinese name and is the standard term in mainland China and most Chinese-speaking communities. Omok (오목) is the Korean name. Gobang is a variation you will see in some older Korean-language sources. Five in a Row is the plain English description and the name this site uses when the rule set, not the culture, is the focus.
The rules that sit behind those names are not identical. A game called Gomoku on a Japanese app may use exact-five casual rules; the same name on a Chinese platform may follow Renju; a Korean app may enforce a swap rule that neither of the others uses. The name is a label, not a contract — check the board size and overline rule before you assume two apps are playing the same game.
A Short History
The earliest written records of a five-stone line game on a Go board date to the Zhou dynasty, roughly 1,000 years before the common era. It was a byproduct of Go: a smaller, faster game that could be played on the same board with fewer pieces. The game spread through East Asia alongside Go, and the modern form — a dedicated 15×15 grid, distinct from the 19×19 Go board — took shape in the early 20th century. The Renju International Federation (RIF), founded in 1972, is the body that standardizes the formal rules today, including Black's opening restrictions and the swap rule that equalizes the first-move advantage.
In 1994, Dutch computer scientist Victor Allis published a result showing that the first player wins on a standard unrestricted 15×15 board. That result is specific to a defined board and ruleset — it does not automatically apply to Renju, to smaller boards, or to the casual exact-five rule used in most apps. If someone tells you Gomoku is "solved," ask which version they mean. The scope of that result is worth reading before treating the game as decided.
Common Names and Related Traditions
Gomoku and Five in a Row
English-language sites use both names for the same family of games. The local app's rules may differ from what you expect, so check the board size and overline treatment before starting.
Omok and Wuziqi
Korean and Chinese names for the same game. The formal ruleset most associated with Chinese play is Renju, which includes Black's restrictions and a swap procedure not present in casual play.
Renju
A formal 15×15 ruleset governed by RIF rules. Black may not play an overline, a double-four, or most double-threes; a swap procedure equalizes the opening. White may win with an overline.
Free-style
The most common casual convention in many regions: five or more in a row wins, no Black restrictions, no swap. Confirm the local rule before you play, because a shape that wins in free-style may be illegal or non-winning in another variant.
How to Play This Site's Game
- Choose a board and mode. Play against the local AI or use pass-and-play with another person. Available sizes are 9×9, 13×13, and 15×15.
- Place one stone each turn. Black starts; stones stay on the board after they are placed.
- Make exactly five. An unbroken line of exactly five wins. A line of six or more does not. A full board with no winner is a draw.
For a guided walkthrough of opening positions and the first ten moves, visit How to Play Gomoku.
Practical Beginner Ideas
Use open space
A central or near-central opening is a practical default on an empty board because it leaves room to build threats in several directions at once.
Count threats
Before you commit to a quiet move, check whether it gives either player an immediate five or a forcing continuation. A threat that cannot be blocked is the move to take.
Confirm the rules
A shape that is a win in exact-five casual play may be a non-win or an illegal move under Renju. Agree on the rule set before the game, not after a disputed position.
Why the Game Has Lasted 3,000 Years
The game survives because it is easy to learn and genuinely hard to master. A new player can be competitive in ten minutes; a strong player can study openings for a decade. The rule set is small enough that two people with a pencil and a piece of paper can start a real game anywhere — no app, no board, no instructions. That portability is a large part of why Gomoku is the default board game in East Asian schools and parks.
The formal Renju rules add a layer of strategy that casual play does not touch. Black's restrictions — no overline, no double-four, most double-threes forbidden — exist because unrestricted first-player Gomoku is a known win for Black. The swap rule, in which Black places the first stone and White may swap, was designed to reduce that advantage without making the opening random. These are not arbitrary constraints; they are the product of a long tradition of trying to make the game fair while keeping it deep.
The game also has a clean cultural story. It is not a commercial product with a corporate owner; it is a shared tradition with a formal international body, a national team structure in China and Japan, and a decades-long research program on its endgame positions. That combination of folk simplicity and academic depth is what keeps it alive.
Renju and Research Notes
RIF's published Renju rules specify a 15×15 board, a center first move for Black, Black's restrictions on overlines, double-fours, and many double-threes, and a formal opening procedure built around 13 direct and 13 indirect patterns. White may win with an overline under those rules. The full rule text is available on the RIF rules page.
Victor Allis's published computer-search work established a first-player win for a defined 15×15 unrestricted Gomoku setting. That result does not by itself settle Renju, every casual app, every board size, or this site's exact-five implementation. Read the scope of the result before treating a game as solved.
Frequently Asked Questions
Is Five in a Row the same as Gomoku?
The terms refer to the same family of games, but the detailed rules are not always identical. Check the board size, overline rule, and opening procedure before assuming two players are playing the same variant.
Does a line of six win?
It depends on the rule set. This site's game requires exactly five. In formal Renju, White's overline wins while Black's overline is forbidden. In free-style casual play, five or more usually wins.
What board size should I use?
Formal Renju uses 15×15. Smaller boards such as 9×9 or 13×13 are useful for casual practice and for players who want shorter games. A 9×9 board is the right starting point for teaching a child the basics.
Can I play online for free?
Yes. The board at the top of this page runs in the browser with a local AI and a pass-and-play mode. A private remote room is available for two players on separate devices — see Gomoku Online.
Is Gomoku easier or harder than Go?
Gomoku is easier to learn and faster to play a full game. Go is deeper and more complex strategically, with territory and capture. Gomoku's challenge is tactical — seeing and blocking threats — while Go's challenge is positional and long-term.
Reviewed 2026-09-14. Sources: Renju International Federation rules; L. Victor Allis, Go-Moku and Threat-Space Search (1994).