How to Play Gomoku

How to play Gomoku in a nutshell: take turns placing stones on a large grid and be the first to get five in a row. The rules are as easy as tic-tac-toe, but the board is big enough for a real game of attack and defense.

Play now

The goal

Make an unbroken line of five or more of your stones, horizontally, vertically or diagonally. The first player to do so wins immediately.

Board and stones

Gomoku is traditionally played on a Go board with black and white stones placed on the line intersections. Our game uses a 15×15 board, the common size for the game. One player has black stones, the other white.

Black always moves first. When you play the computer, you are Black.

Step by step

On a computer you click an intersection. On a phone or tablet, the first tap shows a ghost stone and a second tap on the same spot places it, which prevents accidental moves on small points.

  1. Black places one stone on any empty intersection. Most players start in the center.
  2. White places one stone on any empty intersection.
  3. Players continue alternating, one stone per turn.
  4. Stones are never moved or removed once placed.
  5. The first player with five or more in a row wins. If the board fills with no winner, the game is a draw.

Which rules we use

There are several rule sets for five in a row. Ours is freestyle Gomoku: any line of five or more wins, including overlines of six or more, Black has no forbidden moves, and there is no swap rule at the start. Some variants used in tournaments, such as renju, add restrictions on Black to balance the first-move advantage; these are not used here.

A sample opening

Black starts on the center point. White places a stone diagonally next to it, a common defensive reply that stays close. Black adds a stone that touches the first one straight and the White stone diagonally, starting two possible lines at once.

Within a few moves, one player usually makes an open three, and the other must block it. The game then becomes a sequence of threats and blocks until someone finds a stone that creates two threats together. Watch for that moment on both sides; it decides almost every game.

Basic strategy

For worked examples, see our Gomoku tips and strategy page.

  • An open three, three in a row with both ends free, must be blocked right away.
  • A four must be blocked immediately; an open four cannot be stopped.
  • Win by creating two threats with one stone, such as a four and an open three.
  • Keep your stones close together so they support several lines at once.

Common mistakes

  • Not noticing a diagonal threat.
  • Missing a three with a gap in it, such as two stones, a space, and one more.
  • Attacking while the opponent already has an open three.
  • Playing far from the action, where stones cannot join any line.

Where the game comes from

Five-in-a-row games have long been played on Go boards in East Asia. The name gomoku comes from Japanese and refers to five stones in a row. Because the rules are so simple, the game spread widely and is now played around the world on paper grids, boards and screens.

Playing on PlayJester

Choose Easy, Medium or Hard against the computer, or 2 players to share one screen. Undo is free, hints are available after a short video, and an unfinished game is kept in your browser. You can start right away with Gomoku vs computer.

Gomoku terms

  • Stone: a playing piece placed on an intersection.
  • Open three: three in a row with both ends empty.
  • Four: four in a row that needs one more stone to win.
  • Open four: four in a row with both ends empty; it cannot be blocked.
  • Overline: a line of six or more; it wins in our game.
  • Double threat: two winning threats made by one stone.
  • Freestyle: Gomoku with no restrictions on either player.

FAQ

How many in a row do you need to win Gomoku?
Five. In our game, five or more in a row wins.
Who goes first in Gomoku?
Black always goes first.
Can stones be captured?
No. Unlike Go, Gomoku has no captures; stones stay where they are placed.
Can Gomoku end in a draw?
Yes, if the whole board fills without a line of five, though this is very rare.

More games

Privacy settings

Choose which optional cookies and similar technologies we may use. You can change this at any time with the “Privacy settings” link at the bottom of every page.

Strictly necessaryAlways on

Keep your saved games, sound and language settings and this choice on your device. Always on, because the site cannot work properly without them.

Anonymous statistics that show us which games and pages are used, so we can improve them.

Lets Google and its partners use cookies to personalise ads and measure them. If this is off, you may still see ads, but they won't be based on your interests. Turning it off also opts you out of the “sale” or “sharing” of your personal information.