Gomoku

Gomoku Five in a Row

Place stones on the grid and line up five in a row before the other side, against the computer or a friend.

You0Computer0

Your Gomoku stats

Finish a game and your stats show up here.

Saved in this browser only.

Gomoku plays at gamebreezy.com.

How to play

More games

About Gomoku

Gomoku, also called Five in a Row, is an old two-player game of stones on a grid. Black and white take turns placing one stone on a point, and the first to line up five of their own stones in a row wins. It takes a minute to learn and a lifetime to play well.

Here you play black against the computer at three levels, or against a friend on the same screen. The board is the usual 15 by 15 grid, and your game is kept in this browser if you leave in the middle of it.

Gomoku plays free in the browser on a computer, a tablet or a phone, with no download or sign-up.

Rules

Black moves first, then the sides alternate. A stone goes on an empty point and stays there for the rest of the game; nothing is captured or moved. Five or more stones of one color in an unbroken row, across, down or along a diagonal, win at once. If every point is taken and nobody has a row, the game is a draw.

With a mouse, click a point to place a stone. On a touch screen the points are small, so the first tap shows the stone where it would go and a second tap on the same point places it; a tap somewhere else moves the preview. The last stone is marked, and the winning row is lit when the game ends.

Levels

Easy plays mostly near the stones already down. It completes its own five and stops a four, but it misses everything quieter. Medium weighs every point by the rows it would build and the rows of yours it would stop, one move ahead. Hard also searches for forcing sequences, fours and open threes, a few moves deep, so a plan that works against Medium often fails against it.

How to play it well

Think in threes and fours. A row of three with both ends open is a threat: one more stone makes an open four, which has two ways to five and cannot be stopped. So answer an open three at once, at one of its ends.

To win, build two threats with one stone. A stone that makes an open three in one direction and another in a second direction, or a four and a three together, leaves the other side only one reply. Keep your stones connected near the middle, where rows have room in every direction, and use Undo to see what a different reply would have done.

Questions people ask

Does black have an advantage?

Yes. Moving first is worth a lot on an open board, so you play black against the computer and a first win comes more easily. In a game with a friend, swap colors between games.

Do six or more in a row count?

Yes. Five or more of your stones in an unbroken row win, with no special rules for longer rows.

How do I place a stone on a phone?

Tap a point to see the stone there, then tap the same point again to place it. A tap on another point moves the preview instead.

Is my game saved if I leave?

Yes. The stones on the board are kept in this browser, and the game is picked up where you left it.