Strategy guide

Gomoku Rules and Strategy: How to Win at Five in a Row

By the CrazyArcade team ·

Gomoku, also called five in a row, is a game for two players on a grid, usually 15 by 15. Players take turns placing black and white stones on the intersections, and the first to make an unbroken line of five wins. The rules fit in one sentence, but strong play comes from building several threats at once.

We use our own Gomoku for the examples. You can play it against the computer or a friend on the same device, on a 15x15 or 19x19 board.

The rules

Black moves first. Each turn, one stone goes on any empty intersection, and stones never move or get captured. A line of five in a row horizontally, vertically or diagonally wins. If the board fills up with no five, the game is a draw.

There are two common versions. In freestyle Gomoku, a line of six or more also wins. In standard Gomoku, only exactly five wins, and a longer line, called an overline, does not count. Black has a clear advantage from moving first, so tournament play uses extra opening rules, but casual games usually do not.

Know the threats

A four is four stones in a line that can become five with one more move; your opponent must block it at once. An open four has both ends free, so it can be completed at either end and cannot be stopped. An open three is three in a line with both ends free; if it is not blocked, it becomes an open four next turn.

So the rule of defence is simple: always block a four, and block an open three unless you can make a four of your own first.

Win with a double threat

Most games are won by a move that creates two threats at once, such as two open threes or a four and an open three. Your opponent can only block one of them, and the other turns into an open four or a five. Look for points where two of your lines cross: placing a stone there can create a double threat.

You can also force the game with a series of fours. Each four must be blocked, so your opponent's replies are forced, and you can use those turns to set up a final double threat.

Simple habits for beginners

Play near the centre and keep your stones close together, since stones far apart rarely work together. Before every move, scan the board for your opponent's threes and fours, because most lost games come from a missed open three. Start against the Easy computer, then try Medium, which blocks threats reliably, and Hard, which searches ahead for forcing sequences.