Gomoku (Five in a Row)

Your input stays in your browser and is never sent.

Place stones in turn and be the first to line up five of your colour across, down or diagonally. Play against the computer or with a friend on one device.

  1. Adjust
  2. PlayBlack (You) to play
Opponent
Computer strength

Click an intersection to place a stone. On a phone, the first tap shows a faint stone and a second tap on the same point places it. Freestyle rules with no forbidden moves: five or more in a row wins.

What is Gomoku?

Gomoku is a game where black and white take turns placing stones on the intersections of a board. The first to get five of their own colour in an unbroken line across, down or diagonally wins. Black moves first.

This version uses freestyle rules with no forbidden moves, so six or more in a row also wins. The board is 15×15, and you can play the computer or take turns with a friend on one phone or PC.

There is nothing to sign up for or install. Open the page and play for free.

How to play Gomoku

  1. Choose your opponentPlay the computer as first or second player, or choose two players.
  2. Place a stonePress an intersection to place a stone. On a phone, the first tap shows a faint stone and a second tap on the same point places it.
  3. Make five in a rowWhen five stones of one colour line up, a line is drawn through them and that side wins.

Why play Gomoku on SOKUFU

Preview stops misplaced stones
A tap shows a faint stone first, so on a small screen you never place one on the wrong point by accident.
Two strengths
Easy varies its moves, while Normal weighs both extending its own lines and blocking yours.
Take back a move
Against the computer, you can step back to your own last move and try again.
See the last move
The stone played last gets a small mark, so you never miss your opponent's move.
Runs entirely in your browser
The game and your records are handled on your device. Nothing is sent to a server.
Plays well on phones
The board shrinks to fit your screen, and every move works with touch alone.

How to think about winning

Three in a row with both ends open becomes an open four on the next move if left alone, and an open four can only be blocked on one side. Blocking one side of your opponent's open three early is the basic defence.

On your turn, look for a point that extends two of your lines at once. If there are two places that need blocking, your opponent can only cover one.

More games to play with Gomoku

  • MinesweeperSolve a logic puzzle by reading the numbers and avoiding mines.
  • 2048 GameMerge matching tiles on the way to 2048.
  • Snake GameGrow a snake as long as you can without crashing.

Gomoku FAQ

Are there forbidden moves?

No. These are freestyle rules with no forbidden moves, and five or more in a row wins for black and white alike.

Can the computer move first?

Yes. Choose "Computer (you go second)" and the computer plays black and moves first.

Can two people play?

Yes. Choose "Two players" to take turns as black and white on one phone or PC.

How far does "Take back" go?

Against the computer, it goes back to your last move. With two players, it goes back one move at a time.

Is anything I do sent to a server?

No. The whole game runs in your browser, and your moves are never sent anywhere.