Play Abstract Games
Gomoku hero image

Play Gomoku online

Five in a row wins!

Play Gomoku online for free, right in your browser: against the computer, with a friend online, or with two players on one device. No download and no sign-up. New to five in a row? The rules take a minute.

Ways to play Gomoku online

What is Gomoku?

Gomoku is a two-player strategy board game, also called five in a row or Gobang. Black and White take turns placing one stone on an empty point of a 15 by 15 grid, and the first player to make an unbroken line of five stones, across, down or diagonally, wins. Stones never move and are never captured.

This site plays freestyle Gomoku, where five or more in a row wins. Renju and the other rule sets are compared below.

The rules fit in a sentence, so a game can start in seconds, yet every move is a small puzzle: build your own lines while you watch the lines your opponent is building.

Most games are decided by a double threat, two threats made with a single stone. Learning to spot them, for yourself and for your opponent, is a skill that keeps growing, and a game rarely takes long, so there is always time for one more.

How to play Gomoku in one minute

  1. The board starts empty. Black places the first stone, then the players take turns.
  2. On your turn, put one stone on any empty point where two lines cross.
  3. Stones never move and are never removed.
  4. Make an unbroken line of five or more, across, down or diagonally, and you win at once.
The dot marks Black's last stone, which completes a diagonal five and ends the game.
PuzzleYour move
Black to move. Find the point that makes five in a row.
e
f
g
h
i
j
k
l
m
e
f
g
h
i
j
k
l
m
12
11
10
9
8
7
6
5
4
12
11
10
9
8
7
6
5
4

Make your move on the board.

Show the answer

m9. Black's four from i9 to l9 is blocked at h9 by White, so the open end at m9 completes the five.

That is the whole game. The full Gomoku rules cover six in a row, draws and the words players use for threats, and the tutorial lets you play your first winning line step by step.

Gomoku strategy in three ideas

Most games of Gomoku are won by a threat the opponent cannot answer. These three shapes are where every attack starts.

1. The open threeThree in a row with both ends free. Ignore it and it becomes an open four, so block it at A or B now.
2. The open fourFour in a row with both ends free. White can block A or B, not both, so Black wins next move.
3. The four-threeOne stone makes a four and an open three at once. White must stop the four, and the three becomes an open four.

The Gomoku strategy guide shows how to build these threats, win by continuous fours and defend in time, with positions you can play.

Watch Gomoku videos

Short videos on the rules, the tactics and strong games, picked to help you improve.

How to play Gomoku
How to play Gomoku

Gomoku rule sets: freestyle, Renju and more

Five in a row is played under several rule sets. They agree on the board and the goal and differ in which lines count and how the first move is balanced.

Rule setWhat counts as a winOther rules
Freestyle (this site)Five or more in a rowNone. Black moves first.
Standard GomokuExactly five; six or more does not winOften combined with an opening rule such as Swap2.
RenjuFive; White also wins with six or moreBlack may not make a double three, a double four or six in a row. Fixed opening procedures.
Caro (Vietnam)Five, but not when both ends are already blockedUsually played on a larger grid or on squared paper.
Swap2 openingDepends on the rule set it is used withThe first player places two black stones and one white. The second player then picks a colour, or adds two more stones and lets the first player pick.

Like the idea but want a twist? Pente adds captures to five in a row, and Connect6 has each player place two stones a turn and needs six.

History and other names

Gomoku comes from Japan, where it was played with Go stones on a Go board, which is why the stones sit on the points rather than in the squares. The name comes from Gomokunarabe, roughly five stones in a row.

In 1899 the journalist Kuroiwa Ruikō gave the game the name Renju, and the tournament form later added restrictions on Black to balance the first move. By the late 19th century the game had also reached Britain, where it was sold as Go-Bang. Today it is played under many names, from Wuziqi in China to Omok in Korea and Caro in Vietnam.

Gomoku goes by many names: five in a row, Gobang, Gomokunarabe and 五目並べ in Japanese, 五子棋 (Wuziqi) in Chinese, 오목 (Omok) in Korean and Caro in Vietnamese.

Gomoku questions

Yes. Five in a row, Gobang and Gomokunarabe are names for the same idea: be the first to line up five stones. Rule sets differ in the details, such as whether six in a row counts. This site plays freestyle Gomoku, where five or more in a row wins.

Learn, Play, and Have Fun!

Ready to play Gomoku online? Start a match against the computer now. No signup, no friction.