GOMOKU | Five in a Row

Play free online vs AI or with a friend — Learn the classic strategy game from ancient China

Play Gomoku Online

Press Start to begin the game

Quick Guide

  • Tap any grid intersection to place a stone
  • Form 5 stones in a straight line to win
  • Use Hint to get AI-recommended moves
  • Black always moves first in standard rules

Gomoku History & Story

Origins in Ancient China

Gomoku traces its roots back over 2,000 years to ancient China, where it was known as Wuziqi (五子棋, "five-stone game"). It emerged alongside Go (Weiqi), sharing the same board and stones but with simpler winning rules. Legend says it was played by nobles, scholars, and ordinary people alike as a casual pastime and mental exercise.

Unlike Go, which focuses on surrounding territory, Gomoku centers on building lines — making it far easier to pick up but still deeply strategic. It spread across China through the centuries, becoming a staple family game played on wooden boards or even drawn with chalk on the ground.

How It Got the Name "Gomoku"

The name "Gomoku" comes from Japanese gomoku narabe (五目並べ), meaning "five points lined up". The game was introduced to Japan around the 7th century, where it was formalized and popularized among the samurai and merchant classes. It was in Japan that the game adopted its standard 15×15 board size and formal competitive rules.

Spread Across the World

From Japan, Gomoku spread to Korea (where it is called omok) and throughout East Asia. In the late 19th and early 20th centuries, it reached Europe and North America, where it became widely known as "Five in a Row". Its simple rules and deep strategy made it a hit in schools, homes, and pubs across Western countries.

Modern Competitive Gomoku

Today, Gomoku is played competitively worldwide. The International Gomoku Federation (IGF) organizes world championships, and professional players develop complex opening theories and endgame strategies. While casual players can learn the rules in minutes, mastering the game can take years — making it one of the most beloved abstract strategy games of all time.

How to Play & Strategy Tips

Basic Rules

  1. Board & Pieces

    Standard Gomoku uses a 15×15 grid board with 225 intersections. Players use black and white stones — black has 113 stones, white has 112.

  2. Taking Turns

    Black always moves first. Players alternate placing one stone per turn on any empty intersection. Once placed, stones cannot be moved or removed.

  3. How to Win

    The first player to form an unbroken line of exactly five stones of their color wins. Valid lines can be horizontal, vertical, or either of the two diagonal directions.

    Note: Six or more stones in a row (called an "overline") does not count as a win in official standard rules.

  4. Draw Game

    If all 225 intersections are filled and neither player has five in a row, the game ends in a draw.

Core Strategy Principles

Common Beginner Mistakes to Avoid

Difficulty Level Guide

Frequently Asked Questions

Is Gomoku the same as Connect 4?

No. Connect 4 drops pieces vertically into a 7×6 grid and relies on gravity. Gomoku lets you place stones freely on any 15×15 intersection, with far deeper strategic possibilities.

Is Gomoku solved? Does the first player always win?

On a standard 15×15 board with no restrictions, Gomoku is a proven first-player win with perfect play. However, this requires memorizing thousands of opening lines. For casual and even most experienced players, skill level determines the outcome. Professional tournaments use special opening rules to balance the first-move advantage.

Can I play with a friend locally?

Yes. Select "Two Players" mode and take turns placing stones on the same device. Black plays first, then white alternates.

What is the Hint button for?

In AI mode, tap "Show Hint" to see a recommended move calculated by the AI. It helps beginners learn good positioning and defensive moves.

Can I undo my move?

Yes. In AI mode, undo removes both your last stone and the AI's response. In two-player mode, undo takes back only the last move.

Do I need to download anything to play?

No. The entire game runs directly in your web browser. No installation, no registration, no ads required.

What is the difference between Gomoku and Go?

While they use the same board and stones, they are completely different games. Go is about surrounding territory and capturing stones, while Gomoku is solely about forming five in a row. Gomoku is much simpler to learn.