Play Gomoku Online

Place stones on a 15×15 board and be the first to line up five in a row — horizontally, vertically, or diagonally. Play versus AI at three difficulty levels or pass-and-play with a friend.

Turn
⚫ Black
Black
0
White
0

Black wins!

What Is Gomoku?

Gomoku — also known as Five in a Row, Gobang, or Go-Moku — is a classic two-player strategy board game with ancient roots. It is played on a grid (traditionally 15×15 or 19×19) using black and white stones. Players alternate placing one stone per turn on any empty intersection. The first player to form an unbroken line of five stones — horizontally, vertically, or diagonally — wins.

The game is deceptively simple: the rules take seconds to learn, but skilled play requires pattern recognition, forward planning, and the ability to manage multiple threats simultaneously. Gomoku is one of the world's oldest and most widely played abstract strategy games, enjoyed across Asia, Europe, and the Americas.

How to Play Gomoku

  1. Black goes first. Black places a stone on any empty intersection on the 15×15 grid.
  2. Players alternate turns. White places a stone, then Black, and so on.
  3. Build toward five. Each player tries to line up five of their stones in an unbroken row — horizontally, vertically, or diagonally.
  4. Block your opponent. If your opponent has three or four in a row, you may need to block immediately or risk losing.
  5. First to five wins. The game ends as soon as one player completes a line of five (or more) stones.
  6. Draw. If the entire board fills with no five-in-a-row, the game is a draw (extremely rare).

Gomoku Strategy Tips

1. Control the Centre

Stones placed near the centre of the board radiate influence in all directions. Opening in or near the centre gives you the most options for building lines and creates threats along more axes. Corner and edge stones are inherently limited because several directions are cut off by the board boundary.

2. Build Forks — the Key to Winning

A fork is a position where you have two open-ended threats simultaneously — for example, two separate lines of three with open ends. Your opponent can only block one, so the other becomes an unstoppable four. Learning to set up forks (and recognise when your opponent is building one) is the single most important Gomoku skill.

3. Understand Open vs Closed Lines

An open-ended three (three in a row with both ends empty) is vastly more dangerous than a closed three (one end blocked). Open threes can become open fours, which are unblockable. Always prioritise creating open sequences and blocking your opponent's open sequences.

4. Think Ahead — At Least 3 Moves

Good Gomoku players look 3–5 moves ahead. Before placing a stone, ask: "What will my opponent do? What will I do after that?" Many winning sequences in Gomoku are forced — a series of threats that each require an immediate response, culminating in a fork that cannot be stopped.

5. Don't Just Defend

Reactive play loses in Gomoku. If you spend every move blocking, your opponent controls the initiative and will eventually create an unstoppable fork. When you block, try to place your stone where it simultaneously defends and builds one of your own sequences.

6. Learn Common Patterns

Experienced players recognise patterns instantly: the open four (unblockable), the broken three (X·XX or XX·X where · is the gap), the double three (a fork of two open threes), and the four-three fork. Study these patterns and you'll see them emerge naturally during play.

Gomoku vs Go — What's the Difference?

Because both games use black and white stones on a grid, people often confuse Gomoku and Go (also called Weiqi or Baduk). They are fundamentally different games:

  • Objective: In Gomoku, you line up five stones. In Go, you surround territory and capture enemy stones.
  • Complexity: Go has roughly 10170 possible board positions (on a 19×19 grid). Gomoku on 15×15 has about 10105 — still enormous, but Go is incomparably more complex.
  • Game length: Gomoku games typically last 30–60 moves. Go games average 200–300 moves.
  • Captures: Go features stone capture. Gomoku (in standard rules) has no capture mechanic.
  • Learning curve: Gomoku can be enjoyed immediately by beginners. Go requires learning concepts like life and death, ko, and seki before competitive play.

Both games are excellent tests of strategic thinking, but they appeal to different tastes. If you love the simplicity-meets-depth of Gomoku, you might enjoy Go as a next step in your strategy game journey.

History of Gomoku

Gomoku originated in ancient China and was traditionally played on Go boards (19×19). The earliest records date back over 2,000 years, making it one of the oldest board games still played today. The game spread to Japan during the Heian period (794–1185), where it became known as Gomoku Narabe (五目並べ, meaning "five points line-up").

In the 19th and 20th centuries, Gomoku gained popularity in Europe under names like Gobang. Competitive Gomoku tournaments began in Japan in the early 1900s. In 1988, Swedish mathematician Victor Allis proved that on a 15×15 board with standard rules, Black (the first player) has a winning strategy. This led to the development of tournament rules like the swap rule and Renju (a restricted variant) to balance play.

Today, Gomoku is played worldwide — online, in tournaments, and casually. The game remains a popular introduction to abstract strategy, bridging the gap between simple alignment games like Tic-Tac-Toe and deep strategy games like Go and Chess.

Frequently Asked Questions

Gomoku is a two-player strategy board game played on a grid (traditionally 15×15). Players take turns placing black or white stones on empty intersections. The first player to line up five (or more) stones in an unbroken row — horizontally, vertically, or diagonally — wins the game. It is also known as Five in a Row, Gobang, and Go-Moku.
You win by placing five of your stones in an unbroken line — horizontally, vertically, or diagonally. Key strategies include controlling the centre of the board, building multiple threats at once (forks), and blocking your opponent's open-ended sequences before they become unstoppable.
Although both are played with black and white stones on a grid, they are completely different games. In Go, the objective is to surround territory and capture opponent stones. In Gomoku, the only goal is to line up five stones in a row. Go is vastly more complex — Gomoku is easier to learn but still offers deep strategic play.
On a standard 15×15 board without restrictions, Black (the first player) has a proven advantage. In tournament play, rules like the 'swap' rule or opening restrictions help balance this. In casual play, the first-player advantage is small enough that both sides can enjoy a competitive game.
Yes! This version is fully mobile-optimised. The 15×15 board scales to fit your screen. Simply tap an intersection to place a stone. The grid and stones are sized for comfortable play on any phone or tablet.
There are three AI levels: Easy (plays defensively with some random moves — great for beginners), Medium (evaluates threats and opportunities several moves ahead), and Hard (uses deep threat-space search to find winning sequences and strong positional play). Hard is very challenging for most players.

More Puzzle & Strategy Games

If you enjoy Gomoku, check out these other free games on our site: