Race to line up five stones in a row on a 15x15 board.

About Gomoku

One stone at a time, the grid fills up with black and white, and every placement either builds your line or cuts off your opponent's. Gomoku has one of the simplest rule sets of any board game: get five of your stones in a row across, down or diagonally. Getting there is a lot harder, because your opponent is watching every line you start.

This version uses a 15x15 board and freestyle rules, so six or more in a row counts as a win too. Stones never move or get captured, which means the board only gets more crowded. Play a friend on the same screen, or face the computer on Easy, Medium or Hard. Undo, Resign and a few display settings round it out, and your unfinished game stays saved in the browser.

How to play Gomoku

  1. Choose 2 Player (local) or vs Computer, picking your color and level for a computer game.
  2. Black moves first, then players alternate turns.
  3. Place one stone on any empty intersection each turn.
  4. Build lines of your own while blocking your opponent's open rows.
  5. Win by completing five or more in a row; a full board with no line is a draw.

Gomoku controls

InputAction
Left clickPlace a stone
TapPlace a stone
Arrow keysMove between points
EnterPlace a stone

How to play Gomoku on PC and mobile

On PC, laptop or Chromebook

  1. Press Play on this page – the game loads right here, with nothing to download.
  2. Click Fullscreen under the game for the biggest view. Press Esc to exit.
  3. Click once inside the game so it receives your keyboard input.
  4. Controls: Left click place a stone; Arrow keys move between points; Enter place a stone.

On phone or tablet

  1. Open this page in Chrome or Safari and tap Play.
  2. Turn your device to portrait – the game is designed for a tall screen.
  3. Touch controls: Tap to place a stone.
  4. Tap Fullscreen to hide the browser bars.

Tips and tricks

  • Three stones with open space at each end are more dangerous than a four that's already capped on one side.
  • Look for one move that sets up two threats at once; your opponent can only stop one.
  • Block open threes right away before they grow into an open four.
  • Start near the center so your lines have space to grow in every direction.

Gomoku FAQ

Can two people play on one device?

Yes. Pick 2 Player (local) and take turns placing stones on the same screen.

How tough is the computer?

Easy plays loosely, Medium always takes a win or blocks yours, and Hard adds a short search a few moves ahead. Playing black gives you the first move.

What does Undo do against the computer?

It takes back your last stone along with the computer's reply, so you can try that turn again.

Can I play Gomoku for free?

Yes. Gomoku is free to play in your browser on The Pizza Edition – no download, install or account needed, and there are no ads inside the game itself.

Does Gomoku work on Chromebook and mobile?

Yes. Gomoku runs in any modern browser on Chromebooks, Windows PCs and Macs, and it supports touch controls on phones and tablets.

Who made Gomoku?

Gomoku (originally released as PaperGames – Gomoku (Five in a Row)) was made by Christopher Müller and released as open source under the MIT license. The Pizza Edition hosts the game files on its own servers, so it loads straight from this site.

Credits and license

Original game
PaperGames – Gomoku (Five in a Row)
Made by
Christopher Müller
Source code
github.com/YourChaosChris/PaperGames
Code license
MIT
Art and sound
MIT (grid and stones drawn with CSS, no image or audio files)

Gomoku runs from this site with small changes, which are listed in “What we changed”. The original license and credits are kept with the game files.

Games like Gomoku

More card & board

Explore more categories