Play n Tools

Free tools & games for everyone

Free · No sign-up · No accounts

Gomoku

Play gomoku, five in a row on a 15 x 15 board, against the computer at three levels or with a friend, with freestyle or exactly-five rules.

How to play

  1. Black and white take turns placing one stone on any empty point. Black goes first.
  2. The first to get five of their stones in an unbroken line, across, down or diagonally, wins.
  3. With the “exactly five” rule, a line of six or more does not count.
  4. If the board fills up with no five, the game is a draw.

Keyboard and touch

Arrow keysMove around the board
Enter or SpacePlace a stone
UndoTakes back your last move (and the computer’s reply)

Tips

  • An open three (three in a row with both ends empty) must be blocked at once, or it becomes an open four that cannot be stopped.
  • The strongest attacks make two threats with one stone, such as a four and an open three together.
  • Play near the middle early: lines near the edge have less room to grow.
  • Black has a real advantage in freestyle gomoku; take turns being black.

About this game

Gomoku (“five in a row”) is a traditional game from Japan, played with go stones on a 15 x 15 board. This version offers freestyle (five or more wins) and standard (exactly five) rules, without the extra opening restrictions used in tournaments.

The computer gives every empty point near the stones a score from the lines it would make for itself and the lines it would block for you (open and closed twos, threes and fours, double threats). Hard also looks at your best reply. Stones differ by colour and outline, and the winning line is marked.

The tests check win detection (including the exactly-five rule) against an independent Python check on random boards, and that the computer completes a five, blocks your four and blocks an open three.

See you tomorrow!

A fresh daily puzzle every morning, and new tools added every month.

Browse every product