Gomoku Online

Play Gomoku online free in your browser. Challenge a friend on the same screen, or beat the computer on Easy, Medium or Hard.

Play Gomoku

How do you want to play?

Play Gomoku Online

Gomoku, also called Five in a Row, is a simple strategy game with deep tactics. Two players place stones on a 15 by 15 board, one turn at a time. The first player to line up five stones wins. You can play Gomoku online free here, with no download and no sign-up. The board is shown at an angle so every stone is easy to see, and it stays perfectly still while you play.

Wooden gomoku board with black and white stones and a row of five black stones in the middle
The Gomoku board with black and white stones.

Choose Play vs Computer to practise alone, or choose 2 Players and pass the device to a friend. This page does not use online matchmaking. Both players take turns on one phone, tablet or computer, which makes Gomoku a great game for a short break, a trip or a quiet evening. A full game usually takes five to fifteen minutes.

How to Play Gomoku (Rules)

  1. 1

    The board

    The board has 15 lines by 15 lines. Stones go on the crossing points, not inside the squares. Black plays first, then White.

  2. 2

    Taking turns

    Each player places one stone per turn. Stones never move and are never removed. Because Black always starts, Black has a small advantage.

  3. 3

    How to win

    Make an unbroken row of five or more stones in your colour. The row can run across, up and down, or diagonally. This is freestyle Gomoku, so six or more in a row also wins.

  4. 4

    A draw

    If all 225 crossings are filled and nobody has a row of five, the game is a draw.

  5. 5

    No special restrictions

    Black has no forbidden moves in this version. Overlines count as wins, and double threes or double fours are allowed for both sides.

  6. 6

    Placing stones

    Click or tap a crossing to place your stone. You can also use the arrow keys to move around the board and press Enter or Space to place a stone. The last stone has a pink dot, and the winning row glows gold.

Game Modes and Difficulty

In Play vs Computer you play Black and move first, and the computer plays White. In 2 Players mode, Black and White take turns on the same device, and the screen always shows whose turn it is. Pass the device after each move, or sit side by side.

The computer has three levels, and none of them cheats. Easy plays a random move almost half of the time, so it often misses chances and is a good start for beginners. Medium always takes a winning move, always blocks a row of four, and otherwise picks the move that looks best on a simple score, with a rare slip. Hard looks several moves ahead, searches for double threats and thinks for about a second on each move. Hard is strong, but a careful player can still beat it by building two threats at once.

Gomoku Tips and Strategy

Start near the centre, where your stones have room to grow in every direction. Stones on the edge have fewer ways to make five. Build open threes, which are three stones in a row with both ends empty. An open three forces your opponent to answer, because if you add a fourth stone with both ends open, you win. The strongest move is one that makes two threats at once, such as a four and an open three, because your opponent can only block one of them. Before every move, scan the opponent's rows. Block an open three early, and block a four at once.

Common mistakes are building only one long row, ignoring diagonals, and forgetting split shapes such as stone, gap, stone, stone, which are just as dangerous as a solid three. Gomoku comes from the Japanese words for five pieces in a row and has been played in Japan for more than a century, and in China as Wuziqi. In the 1990s computer analysis showed that, in the freestyle game on a 15 by 15 board, the first player can force a win with perfect play. Real games between people are still full of mistakes, so every game is worth playing.

Frequently Asked Questions

What is Gomoku?

Gomoku, also called Five in a Row, is a two-player strategy game. Players take turns placing black and white stones on a 15 by 15 board. The first player to make an unbroken line of five stones wins.

How do I play Gomoku online here?

Pick Play vs Computer or 2 Players. Black moves first. Click or tap a crossing on the board to place a stone, or use the arrow keys and press Enter. Make five in a row before your opponent does.

What are the rules of Gomoku?

The board has 15 by 15 lines, and stones go on the crossings. Black plays first and players alternate. Five or more stones in a row, in any direction, wins. If the board fills up with no winner, the game is a draw.

Is this Gomoku game free?

Yes. The game is free, runs in your browser, and needs no download, no account and no sign-up.

Can I play Gomoku with friends on one device?

Yes. Choose 2 Players and take turns on the same phone, tablet or computer. This page does not offer online matches, so both players need to share one screen.

What are the difficulty levels?

Easy makes weak moves and often misses chances. Medium takes wins, blocks fours and plays sensible moves with rare slips. Hard looks several moves ahead and is difficult to beat. No level cheats.

Does Gomoku work on mobile?

Yes. The board scales to your screen and works with touch. On a small phone you can place a stone with a light tap on the crossing you want.

What is a good Gomoku strategy?

Play near the centre, build open threes, and look for a move that makes two threats at once. Always check the opponent's rows before you attack, and block an open three before it becomes an open four.

Does six in a row count as a win?

Yes. This is freestyle Gomoku, so a line of five or more stones wins. There are no forbidden moves for Black, so double threes and double fours are allowed.

More Games to Play