cools maths gamesSurprise me

Gomoku

Take turns placing stones on a 15x15 grid and be the first to form a straight line of five or more.

Gomoku title screen
  • Works on mobile
Report a problem

Gomoku is a two-player stone game with one goal: make five in a row before your opponent does. You place stones on the crossings of a 15x15 grid, and they never move or leave. The rules are quick to learn, but blocking and building at the same time gets tricky fast.

How Gomoku Works

Black opens the game, and then each player adds one stone per turn to any empty point. A stone stays where you put it for the rest of the game, so the board only fills up.

You win the moment you have five or more of your own stones in an unbroken line. The line can go across, up and down, or along either diagonal. If the whole board fills with no such line, it is a draw.

You can face the computer at Easy, Medium or Hard, choosing black to go first or white to reply. Or pick the local two-player mode and pass the device. A status line above the board says whose turn it is.

Your First Few Minutes

  1. Pick “vs Computer”, take black and choose Easy.
  2. Put your first stone near the center of the grid.
  3. Build lines of two and three with both ends open.
  4. Each turn, check whether the computer has an open three to block.
  5. Look for one stone that makes two threats at once.

Controls for Gomoku

Keyboard, mouse and touch controls for Gomoku
To do thisKeyboardMouseTouch screen
Place a stoneArrow keys to move between points, Enter to placeClick an empty intersectionTap an empty intersection
Start a two-player gamenot usedClick "2 Player (local)"Tap "2 Player (local)"
Start a game against the computernot usedClick "vs Computer", pick a color and level, then click "New game"Tap "vs Computer", pick a color and level, then tap "New game"
Take back your last stonenot usedClick "Undo"Tap "Undo"
Give up the current gamenot usedClick "Resign"Tap "Resign"

What It Trains

Every turn has two jobs: grow your own lines and spot the other player’s. You scan four directions around each new stone and count how many points a line needs, which builds pattern spotting and planning a few moves ahead.

Strategy Notes

  • Prize open ends. Three in a row with both ends free beats four that is capped on one side.
  • Set up a fork. A stone that makes two threats at once can only be blocked once.
  • Stop open threes right away. Left alone, they turn into fours with two winning points.
  • Play near the middle. Central lines have room to stretch in every direction.
  • Leave hidden gaps. A broken line with one empty point is easy to miss and can still finish five.
  • Take black on Hard. Moving first helps a lot under freestyle rules.

Good to Know

The board fits phones in portrait, and mouse, touch and keyboard all work. There is no sound. Your game in progress is saved in your browser, and Resign or New game asks before ending a game. It comes from Christopher Müller’s PaperGames collection.

Gomoku questions and answers

Can a game of Gomoku end in a draw?

Yes, but it is rare. If every point on the board fills up and nobody has five in a line, the game is a draw. Most games end long before that because one side builds a threat the other cannot cover.

Is there any special rule for black?

No. This version uses freestyle rules, so black has no forbidden moves, and a line longer than five also wins. That makes moving first a real edge, which is worth knowing when you pick your color.

What does Undo take back against the computer?

It removes your last stone and the computer's reply together, so you are back at your own turn. In a two-player game it simply removes the most recent stone.

Can I change how the game looks?

Yes. The settings let you adjust text size, turn on high contrast, change spacing and set how fast the computer replies. The newest stone always has an extra ring so you can spot it.

Games that use planning ahead like Gomoku

Different rules, same kind of thinking.

Try something from another shelf