How to play Gomoku

Also called five in a row (लगातार पाँच), gobang, omok and caro. Played with limits on black it is renju (रेन्जु).

Gomoku is a game for two on a board of 15 lines by 15, one with black stones and one with white. Take turns putting a stone on an empty point where two lines cross, black first, and the first to make an unbroken line of five, across, down or on a slant, wins. Stones never move and are never taken.

It is tic-tac-toe on a board big enough that careful play rarely draws. Five or more wins here by default, and exactly five and renju, which limits black, are settings.

Set the table up with your own house rules
A gomoku board of 15 lines by 15 on Nepali Games: black and white stones clustered round the centre point, and a red dot on the white stone played last.
Players
2
What you need
A board of fifteen lines by fifteen, black and white stones
How long
A game takes three to five minutes

At a glance

Which line wins, under each rule
RuleFiveSix or moreBarred to black
Five or more (default)WinsWinsNothing
Exactly fiveWinsCounts for nobodyNothing
RenjuWinsWins for white onlyTwo open threes, two fours, six

Black moves first under every rule. Under renju the points closed to black are marked with a cross while black is to move.

The rules of Gomoku on one card: Which line wins, under each ruleThe same table on one card, to keep on your phone or send to the family group. Tap to open it.

Rules checked 20 October 2026. How these rules are written

What gomoku is

Gomoku is a game for two on a board ruled with fifteen lines each way. One player has black stones and the other white, and they take turns putting one stone on any empty point where two lines cross.

Stones never move and are never taken. The first to have five of their own colour in an unbroken line, across, down or on a slant, wins. If the board fills and nobody has five, the game is a draw.

Black has five on a slant, and the game is over. White was one stone short.

The board

  1. Stones go on the points where the lines cross, not in the squares between them. There are 225 points, and five of them carry a dot so the eye can find its place.
  2. Black always moves first. Moving first is an advantage, so in a match of several games the colours change hands between games.
  3. You choose your colour for the first game on the game page. On this phone, it is the first player's.
Black usually opens on the centre point, marked on a real board with a dot.

Taking a turn

On your turn, put one stone on any empty point. That is the whole move. Before you do, look for two things. Can you make five? Then do, because that wins. Does your opponent have four in a line with the fifth point open? Then you must take that point yourself, or they win next turn.

Black has four in a row, closed at one end by white. White must take the ringed point now.

On a phone a point is smaller than a fingertip, so touch the board and slide: a line along the row and the column under your finger shows where the stone will go, and it is placed when you lift your finger. With a mouse, click the point. The stone placed last carries a small red dot, so you can see what your opponent just did.

Fours and open threes

A four must be answered at once, because it threatens five. An open four, four in a row with both ends empty, cannot be answered at all: white blocks one end and black plays the other.

So an open three, three in a row with room at both ends, is a threat too. It is one move from an open four. If your opponent makes one, close an end of it now, unless you can make a four of your own, which they must answer first.

A black stone on the ringed point makes a four down the board and an open three across it at the same time.

Games are won by making two threats with one stone: two fours, or a four and an open three. Your opponent can stop only one of them.

An open three. If white does not close one end now, black makes an open four next turn.

How a game ends

A game ends the moment somebody makes five in a row. One stone can finish two lines at once, and every line it made is struck through.

If every point fills and nobody has five, the game is a draw. Between two players who block well that is rare, because the board is large and a game usually ends long before it fills.

Which line wins

There are three ways to play, chosen on the game page.

  • Five or more in a row: any unbroken line of five or longer wins. The usual way, and the default here.
  • Exactly five: a line of six or more does not count for either player. Only five exactly wins.
  • Renju: black, who moves first, may not play a stone that makes two open threes at once, two fours at once, or a line of six or more. Black wins only with exactly five. White has no limits and wins with five or more.

Renju exists to make up for black's first move. Under it, the points closed to black are marked with a cross while black is to move, and the game will not let black play there. A stone that makes five is never closed.

A black stone here would make two open threes, so renju closes this point to black.

A match

A match is one, three or five games, chosen on the game page. Three is the usual setting: a game takes a few minutes, and three is a sitting.

Every game of the match is played, and whoever wins more of them wins the match. A drawn game counts for nobody, and a match that ends level is a draw. Black changes hands each game, or goes to whoever lost the last game if the table plays that way.

Playing better

  • Play near the stones already down. A stone far from the others helps no line.
  • Answer an open three at once, and close the end that leaves your opponent least room.
  • Before you answer a threat, see whether you have a four. Your opponent must block it, and a run of fours can win the game outright.
  • Build in more than one direction. Two lines that cross at an empty point are a fork waiting to happen.

Settings

Everything on the game page, before you press Play.

SettingStandardWhat it changes
Who is playingWith botsWith bots sets you against a bot. On this phone seats two people, who pass the phone between turns or leave it lying flat between them. Friends online plays over a link. Watch the bots, the link under the button, sets two bots against each other.
Your colour in the first gameBlackYour colour in the first game. Black moves first, and the colours change hands after it. On this phone it is the first player's.
Games3One, three or five games. Every game of the match is played, even once one player can no longer be caught.
DifficultyMediumEasy takes a win when it sees one but misses a block about half the time. Medium always blocks a four and an open three and looks three stones ahead. Hard looks further, hunts for a win by a run of fours, and sees yours coming.
Which line winsFive or more in a rowFive or more, exactly five, or renju, as described above.
Who has black next gameEach in turnEach in turn gives black to the other player every game. Whoever lost gives it to the player who lost the last game, and after a draw it changes hands as usual.

The words

Gomoku (गोमोकु)
The game's Japanese name, meaning five pieces. Also called five in a row.
Point (बिन्दु)
A place where two lines cross, where a stone goes.
Four
Four of one colour in a line with a point left that would make five. It must be blocked at once.
Open three
Three in a row with room at both ends, one move from an open four.
Overline
A line of six or more. It wins under freestyle, not under exactly five, and renju forbids it to black.
Renju
The rules that limit black's moves to make up for moving first, and the name of the game played under them.

How other families play it

Every family plays it a little differently. These are the ways we know of. The ones with a button are house rules this table can play.

Exactly five

A line of six or more counts for nobody, and only five exactly wins, for both colours. It is a setting here.

Renju

Black may not make two open threes, two fours or a line of six, and wins only with exactly five, to make up for moving first. White has no limits. Here the closed points are marked with a cross. Tournament renju's opening rules are not built.

Whoever lost takes black

Black moves first, which is an edge, so it can go to whoever lost the last game instead of changing hands every game. After a draw the colours change hands as usual. It is a setting here.

Swap2

The opening tournament freestyle uses: the first player lays three stones, two black and one white, and the second either picks a colour or adds two more and hands the choice back. It evens out black's first move. The table here does not have it.

Questions people ask

What are the rules of gomoku?

Two players take turns putting a stone of their colour on an empty point of a 15 by 15 board, black first. The first to make an unbroken line of five, across, down or on a slant, wins. Stones never move and are never taken.

Does six in a row win in gomoku?

Under freestyle, the default here, yes: five or more wins. Under exactly five, a line of six counts for nobody. Under renju, six wins for white but is barred to black.

What is renju?

Gomoku with limits on black, to make up for black moving first. Black may not play a stone that makes two open threes at once, two fours at once, or a line of six or more, and wins only with exactly five. White has no limits. It is a setting here.

Who goes first in gomoku?

Black, always. In a match the colours change hands between games, or, if you choose it on the game page, whoever lost the last game takes black.

What is an open three in gomoku?

Three in a row with room at both ends. Left alone it becomes an open four, which cannot be stopped, so close one end at once unless you can make a four of your own.

Is gomoku the same as five in a row?

Yes. Five in a row, gobang, omok and caro are names for the same game. Renju is the version with limits on black.

Can gomoku end in a draw?

Only if all 225 points fill and nobody has five, which is rare. Under renju a board where every empty point is closed to black is drawn too.

Every rule on this page is the one the app plays by. Change any of them on the game's own page before you start.

Nepali Gamesनेपाली खेलहरू