How to play Five in a Row

1 player vs computer, or 2 online

Play Five in a Row now

Line up five of your own stones before your opponent does, in any direction, on a fifteen-by-fifteen board where a stone may go on any empty square.

The rules, step by step

  1. 1

    Tap an empty square to aim at it. A faint stone and a crosshair show where you are pointing.

  2. 2

    Tap the same square again to place your stone there. Tapping anywhere else just moves the aim.

  3. 3

    Players alternate, one stone per turn. A stone is never moved or removed once it is down.

  4. 4

    Five of your own stones in an unbroken line wins, horizontally, vertically or diagonally.

  5. 5

    A line of six or more wins too. There is no penalty here for overshooting.

  6. 6

    If all two hundred and twenty-five squares fill with nobody lined up, the game is drawn. In practice this almost never happens.

Three tips that change how you play

The double threat

Suppose you have three stones in a row with empty squares at both ends. That is an open three, and your opponent has to block one end this turn or you make an open four next turn, which cannot be stopped at all. So they block, and you have gained a tempo and nothing else. Now suppose instead the square you were about to play sits on a diagonal where you already have two stones with open ends. Playing it makes the horizontal three and a diagonal three at the same time. Your opponent gets one block. Whichever line they choose, you extend the other into an open four, and an open four has two winning squares against their one stone. That is a double threat, and it is how almost every game between two players who both know the rules is decided.

Three mistakes that cost beginners the game

Blocking every line the opponent starts.
A closed three is not a threat, and answering it hands over the initiative for nothing. Check whether the line still has two open ends before you spend a move on it. If it does not, leave it and build your own.
Building one long line and pushing it as far as it will go.
A single line, however long, is stopped by one stone at each end. Wins come from two lines that cross. Build shapes that overlap, so that answering one of them creates the other.
Treating a line as broken because there is a hole in it.
Stone, gap, stone, stone is a four, not a pair of twos. The empty square in the middle is the winning square, and it is the threat players miss most often in both directions.

Common questions about Five in a Row

Is Five in a Row the same as gomoku?

Yes. Gomoku is the Japanese name and the one used in tournaments. Five in a row is the plain English description of the same thing. This is the free-style version, which is what almost everybody plays casually: any five wins, and no opening shapes are banned.

Does the first player always win?

In free-style gomoku with perfect play, yes, which is why competitive play adds extra opening rules to even it out. Nobody plays perfectly, so in practice moving first is an advantage rather than a result. That is why the opening alternates between games here.

Why does it take two taps to place a stone?

Fifteen columns across a phone screen makes each square about twenty-two pixels wide, which is smaller than a thumb. The first tap aims and the second commits, so a mis-tap moves the crosshair instead of losing you the game. On a desktop the second tap is just a confirming click.

Ready to play Five in a Row?

Free, in your browser, on any device. Nothing to install and no account needed.

Start a game