Gomoku

Be first to line up five stones on a 15 x 15 board, against the computer or a friend.

Level
My stone

Controls:

  • Mouse: click an intersection to place a stone
  • Touch: tap once to preview, tap the same spot again to place
  • Exactly five in a row wins; six or more does not count

Embed Gomoku on your site

Paste the code into the HTML view of your post or page. It works on WordPress, Blogger and most site builders that allow iframes.

Black and white take turns, and the first to make five in a row horizontally, vertically or diagonally wins. The board is 15 x 15 and Black moves first. Choose "vs Computer" or "Two Players". Against the computer you pick a level and a color.

Exactly five, and the optional ban

Five in a row ends the game and a red line marks it. Six or more does not count, for either color, and play simply continues. A full board is a draw.

The "Forbidden moves (Black: no 3-3, 4-4)" box is off by default. Turned on, Black cannot make two open threes (3-3) or two fours (4-4) with one stone, and a warning appears if it tries. When a person plays Black, banned points show a red X. A move that completes five is never banned, and White has no restrictions.

LevelBlocks an opponent fourHow it picks
EasyAbout 85% of the timeRandom among top candidates
NormalAlwaysRandom among similar top candidates
HardAlwaysPicks twelve candidates and looks a few moves ahead

All three levels play a winning move whenever they have one.

With a mouse, click an intersection. On touch screens, tap once for a blue preview and tap the same spot again to place. Undo takes back your move and the computer's reply together, or one move in Two Players. Only win and loss counts per level against the computer are saved in the browser; games in progress are not.