All the games you need

Setting up the board…

How to play gomoku

Play gomoku free against the computer at three levels, with a friend on the same screen, or with a friend on their phone, who joins with a party code or the link you send. No ads, no sign-up. How the board games work.

The board and the stones

Gomoku is played on the lines of a board 15 by 15 (or a go board of 19 by 19), with black and white stones. The board starts empty. Black moves first, then the players take turns.

A stone goes on any empty point where two lines cross, not inside the squares. Once down it stays: stones are never moved or taken off.

Five in a row

The first player to make an unbroken line of five stones of their colour wins: across, up and down, or on either diagonal. A gap or one of the other colour’s stones breaks a line.

If the board fills up and nobody has five, the game is a draw.

Five or more, or exactly five

The table plays freestyle unless you choose otherwise on New game: a line of five or more wins, so six in a row wins too.

With Exactly five (standard gomoku) only a line of exactly five stones wins. A line of six or more, an overline, wins nothing, and play goes on.

Fours and threes

A four is four stones in a line with room to make five: the other player must block it at once or lose. An open four has room at both ends and cannot be stopped, so it wins.

An open three is three in a row with both ends free: left alone it becomes an open four. Answer it by blocking one end, right next to the stones.

Most games are won by making two threats with one stone: a four and an open three together, two open threes, or two fours. The other player can only block one. The line under the board says Four or Open three whenever one stands against the player to move.

Playing on this board

With a mouse, the stone shows where it would go as you move over the board; click to play it. On a phone or tablet, tap a point to set your stone there, then tap it again to play it, so a slip of the finger costs nothing.

The stone comes from your bowl at your right hand. When someone makes five, the line glows along its stones.

A few things good players know

Play near the middle and near the other stones: lines need room to grow. Build in several directions at once, so that one stone can later make two threats.

Block open threes early, from the side where the other player has more room. And count your own fours before you defend: a four of yours must be answered first, and it may win the race.

Questions people ask

Is Gomoku the same as Five in a Row or Gobang?
Yes. Gomoku is the Japanese name, “five stones”; Gobang, Connect Five and Five in a Row are other names for the same game.
Does six in a row win in Gomoku?
In freestyle gomoku, the table’s usual rule, yes: five or more wins. In standard gomoku only exactly five wins and a line of six is nothing. Choose either on New game.
Is Gomoku fair to White?
Black, who moves first, has a real advantage. Computer searches in the 1990s showed that on a 15 by 15 board Black can always force a win with perfect play. Between people it is far less clear-cut; take turns playing Black.
What is Renju?
Renju is the tournament form of gomoku. It evens the game by forbidding Black some moves (two open threes at once, two fours at once, and lines of six or more) and by fixed opening rules. This table plays gomoku without those limits.
Is Gomoku the same as Go?
No. They share the board and the stones, but in go stones are captured and the aim is to surround territory. In gomoku nothing is captured and five in a row wins.
Can I play on a 19 by 19 board?
Yes, choose 19×19 on New game. Gomoku was long played on a go board; 15 by 15 is the size gomoku and renju tournaments use today.
How strong is the computer?
Easy looks a move ahead and often lets an open three through. Medium looks for a run of fours that wins and searches a few moves deep. Hard also finds wins built from threes and fours, and checks that its move leaves you no such run of your own.

More board games