Author & Engine Note: Written by Developer Guo, maintainer of the InstantGames HTML5 Gomoku MCTS AI engine. Every diagram and rule below matches the live 15×15 board and toggleable Renju forbidden-move checker we ship in-browser.

Gomoku rules take less than 60 seconds to learn: two players alternate placing black and white stones on the intersections of a 15×15 grid, Black moves first, stones never move or get captured, and the first player to form an unbroken line of five stones in a row — horizontally, vertically, or diagonally — wins immediately.

Where beginners get tripped up is the gap between casual Free-style Gomoku and competitive Renju / Swap2 rules — especially when a 6-stone overline or a double-three gets flagged as illegal. Below is the complete visual breakdown of setup, ruleset differences, forbidden moves, and the core Gomoku strategy patterns you need to beat strong human opponents or MCTS AI.

Want to test these rules right now with live forbidden-move markers and Easy/Medium/Hard MCTS AI?

Play Free Online Gomoku (15×15 + Forbidden Rules Toggle)

1. Core Gomoku Rules: Setup, Turns & Win Condition

Gomoku (also called Five in a Row, Gobang, or Wuziqi in Chinese) is a pure abstract strategy game with zero hidden information and zero luck. Whether you play on a physical Go board or in your browser, five core rules govern every match:

  1. Board size (15×15 intersections): Modern tournament Gomoku uses a 15×15 grid (225 intersections). Casual sets sometimes use a 19×19 Go board, but 15×15 is the international standard set by the Renju International Federation (RIF).
  2. Stones go on intersections, not squares: Just like Go, every stone sits on the crossing point of two grid lines. Edge and corner intersections are legal.
  3. Black moves first: Black places the opening stone (usually on the center star point, H8), and players alternate placing one stone per turn on any empty intersection.
  4. No moving, no capturing: Once placed, a stone remains in that spot for the rest of the match. Unlike Go or Pente, surrounding enemy stones does not capture them.
  5. Five in a row wins immediately: The first player to connect five of their own stones in an unbroken horizontal, vertical, or diagonal line wins on that turn. If all 225 intersections are filled with no winner, the game is a draw.

Visual Check: Legal Five-in-a-Row Wins

Horizontal Five

Five consecutive stones on the same horizontal grid line win instantly.

Diagonal Five

Diagonals are the hardest threats for beginners to spot—and the strongest weapon in real matches.

Vertical Five

Always place stones on the crossings, never inside the empty boxes.

2. Free-Style vs Standard vs Renju vs Swap2

Why are there multiple versions of Gomoku rules? In 1994, Dutch computer scientist Victor Allis mathematically proved that in unrestricted Free-style Gomoku on a 15×15 board, Black has a forced win with perfect play. Even for human club players, moving first creates an overwhelming initiative unless a balancing rule is added.

That is why modern Gomoku is played under four clearly defined rulesets. Before starting a match—or choosing your toggle in InstantGames Gomoku—check which ruleset applies:

Ruleset Board Overline (6+ in a Row) Black Forbidden Moves Opening Balance Best For
Free-Style Gomoku 15×15 (or 19×19) Wins for both colors None None (Black heavily favored) Casual & first-time players
Standard Gomoku 15×15 Does not win (exact 5 required) None None (Black still favored) Casual games with stricter win checks
Renju (RIF Official) 15×15 Illegal loss for Black; legal win for White Double-Three (3×3), Double-Four (4×4), Overline (6+) RIF opening protocol (e.g., Soosyrv-8) Classic Japanese/international tournament play
Swap2 Gomoku 15×15 Does not win (exact 5 required) None P1 places 3 stones (2B, 1W); P2 chooses Black, White, or places 2 more stones and lets P1 pick color Modern Gomoku World Championship

Important Distinction: Casual vs. Tournament Rules

Many online players argue mid-game about whether 6-in-a-row counts or whether double-three is illegal. Neither side is “wrong”—they are simply thinking of different rulesets. In InstantGames Gomoku, the Forbidden Rules button in the top bar defaults to Standard (Renju-style forbidden moves ON for Black) and marks illegal intersections directly on the board so there is never any ambiguity. Click it once if you prefer relaxed Free-style play.

3. Visual Guide to Black’s Forbidden Moves (Renju Rules)

Under Renju-style forbidden-move rules, only Black is restricted—White is allowed to make double-threes, double-fours, and overlines freely. Note one crucial exception: if a Black move simultaneously completes an exact Five in a Row, the win overrides a double-three or double-four (though an overline of 6+ is still forbidden for Black).

The 3 Forbidden Intersections for Black (Red ×)

Double-Three (3×3)

Playing at the red × creates two simultaneous Open Threes (each unblocked on both ends). Illegal for Black.

Double-Four (4×4)

Playing at × forms two fours at once (even if one end is blocked). Because White can only block one, 4×4 is banned for Black.

Overline (6+ Stones)

Bridging two groups into 6 or more stones in a row is a foul for Black—and a classic trap White can deliberately force Black into.

4. Winning Gomoku Strategy: 5 Patterns That Decide Games

Beginners play Gomoku by trying to build one long line of five stones. That almost never works against an attentive opponent, because a single four-in-a-row is trivially blocked on the next turn. Real Gomoku strategy is about creating double threats—positions where your opponent can only stop one threat while you win on the other.

The 3 Legal Winning Shapes Every Player Must Know

Open Four (Game Over)

Four stones open on both ends (green circles). Your opponent can only block one side—so you win next turn.

Open Three (Must Block!)

Three stones unblocked on both sides. Ignore it for even one move and it becomes an unstoppable Open Four.

★

Four-Three Fork (Legal Win!)

The green ★ makes a blocked Four horizontally AND an Open Three vertically. Legal even for Black under Renju!

1. Own the Center First (H8)

A stone near the center reaches four full directions (horizontal, vertical, and two long diagonals). Stones placed near the edge lose up to half their tactical reach—never wander to the corners in the opening.

2. Aim for Four-Three Forks (4×3)

Because Double-Three and Double-Four are banned for Black in Renju rules, the Four-Three fork is the universal winning combination for both colors. Practice building a half-blocked four that intersects a live two.

3. Defend Open Threes One Move Earlier

The moment an opponent gets an Open Four, the game is already lost. Always block an Open Three—or a broken three (like ●●_● with both outer ends open)—on the very next turn unless you have a forcing four of your own.

4. Attack While Defending (Tempo)

When blocking an opponent’s Open Three, look at both ends of their line. Pick the blocking intersection that also extends one of your own two-stone lines so you steal the initiative back.

If you want to see how an engine evaluates these shapes under time pressure, check our engineering post on optimizing the InstantGames Gomoku MCTS AI—or jump straight onto the live 15×15 board and test a Four-Three fork against Medium or Hard difficulty.

Ready to put these Gomoku rules and Four-Three tactics into practice? Play Black or White against our MCTS AI (or local 2-player):

Launch InstantGames Gomoku Free

5. Gomoku Rules FAQ

Does a row of 6 stones win in Gomoku?

In Free-style Gomoku, six or more stones in a row (an overline) counts as a win. In Standard Gomoku, a win requires exactly five stones, so an overline does not win. Under Renju rules, an overline is a forbidden move that immediately loses for Black, while White may still win with six or more.

Can you capture stones in Gomoku like in Go?

No, Gomoku has no capturing rules. Although Gomoku is often played using Go stones on a 15×15 or 19×19 grid, stones placed in Gomoku stay on the board until the game ends. Surrounding an opponent’s stones blocks their lines but never removes them (capturing belongs to Pente, a separate variant).

What are the forbidden moves in Gomoku?

In Renju-style Gomoku rules, only Black (the first player) faces three forbidden moves: double-three (creating two open threes at once), double-four (creating two fours at once), and overline (forming six or more stones in a row). White has no forbidden moves, which balances Black’s first-move advantage.

Does Black always win in Gomoku with perfect play?

In Free-style Gomoku on a 15×15 board, computer scientist Victor Allis proved in 1994 that Black has a forced win with perfect play. That mathematical proof is why competitive Gomoku uses balancing rules such as Swap2 openings or Renju forbidden moves to make matches fair for White.

What is the difference between Gomoku and Renju?

Gomoku is the general name for Five in a Row, including casual Free-style play where both colors follow identical rules. Renju is the official tournament variant governed by the Renju International Federation, which restricts Black with opening rules plus double-three, double-four, and overline bans to equalize the game.

6. Official Rule References & Verification Sources

Test Your First Four-Three Fork on a Live 15×15 Board

Play Gomoku Free Online Now

Instant HTML5 play, MCTS AI opponent, local 2-player mode, and live forbidden-move markers — no download.