Skip to content
Random game
Gomoku

Gomoku

Place black and white stones to connect five in a row first.

1 to 2 players

GomokuBoard Games
Remove ads

Report a problem with this game

Tell us what is wrong. Foony staff read every report.

Gomoku

Place black and white stones to connect five in a row first.

Made by Yao Yujian (yyjhao) Published by Foony

Advertisement Remove ads

About Gomoku

Gomoku, also called Five in a Row or Gobang, is a classic strategy board game played on a 15-by-15 wooden grid with black and white stones.

Show more

The rules take ten seconds to learn, yet the tactics run deep. Black moves first, and players take turns placing one stone on any empty intersection. The first player to line up five stones of their color in an unbroken straight row horizontally, vertically, or diagonally wins the game.

Because there are no captures and stones never move once placed, every turn is a tight balance between attack and defense. An open three (three stones in a row with empty intersections at both ends) is dangerous because if ignored it turns into an unstoppable open four on the next move. Experienced players look for double threats called forks, where a single stone creates two open threes or an open three and a four at the same time so the opponent cannot block both.

This HTML5 edition features a responsive AI opponent powered by a background Web Worker so the board stays smooth while the computer calculates. Open New Game to pick between playing against the Computer or playing two-player Human mode on one screen. Against the computer, you can play as Black or White and choose Novice, Medium, or Expert strength. Press Undo whenever you want to back up a turn and examine a better blocking intersection.

The clean wood board scales neatly for mouse clicks on desktop and touch taps on phones and tablets.

When playing Black, staying close to the center star point gives your lines the most space to expand in all four directions. When playing White, answering aggressively by placing stones that both block Black's diagonal and extend your own threat keeps the initiative from slipping away. Because the AI thinks quickly on Novice and calculates deeper combinations on Expert, you can step up the challenge smoothly as your pattern recognition improves.

How to play

Goal

Be the first player to line up five stones of your color in an unbroken row.

Controls

Click or tap an intersection
Place your black or white stone on the board
New Game button
Pick vs Computer or 2-Player mode, color, and AI difficulty
Undo button
Take back the last turn

Steps

  1. 1 Click or tap near the center of the 15x15 grid to place your first stone.
  2. 2 Build connected lines of three and four while watching your opponent's threats.
  3. 3 Block any open three from the AI before it turns into an unstoppable four.
  4. 4 Look for fork intersections that create two winning threats at the same time.
  5. 5 Connect five stones horizontally, vertically, or diagonally to win the round.

Credits and license

Made by
Yao Yujian (yyjhao)
License
MIT License
Source code
github.com/yyjhao/HTML5-Gomoku
Credits

HTML5 Gomoku by Yao Yujian (yyjhao/HTML5-Gomoku). Open source under the MIT License, Copyright (c) 2013 Yao Yujian. Bundles jQuery 1.8.2 and jQuery Mobile 1.2.0 locally under the MIT License. Source code: https://github.com/yyjhao/HTML5-Gomoku FreeGames.gg bundled scripts locally, removed analytics, and wired FreeGamesSdk.

Player reviews

Your review

More games like Gomoku