Play Gomoku Online
Place stones on a 15×15 board and be the first to line up five in a row — horizontally, vertically, or diagonally. Play versus AI at three difficulty levels or pass-and-play with a friend.
What Is Gomoku?
Gomoku — also known as Five in a Row, Gobang, or Go-Moku — is a classic two-player strategy board game with ancient roots. It is played on a grid (traditionally 15×15 or 19×19) using black and white stones. Players alternate placing one stone per turn on any empty intersection. The first player to form an unbroken line of five stones — horizontally, vertically, or diagonally — wins.
The game is deceptively simple: the rules take seconds to learn, but skilled play requires pattern recognition, forward planning, and the ability to manage multiple threats simultaneously. Gomoku is one of the world's oldest and most widely played abstract strategy games, enjoyed across Asia, Europe, and the Americas.
How to Play Gomoku
- Black goes first. Black places a stone on any empty intersection on the 15×15 grid.
- Players alternate turns. White places a stone, then Black, and so on.
- Build toward five. Each player tries to line up five of their stones in an unbroken row — horizontally, vertically, or diagonally.
- Block your opponent. If your opponent has three or four in a row, you may need to block immediately or risk losing.
- First to five wins. The game ends as soon as one player completes a line of five (or more) stones.
- Draw. If the entire board fills with no five-in-a-row, the game is a draw (extremely rare).
Gomoku Strategy Tips
1. Control the Centre
Stones placed near the centre of the board radiate influence in all directions. Opening in or near the centre gives you the most options for building lines and creates threats along more axes. Corner and edge stones are inherently limited because several directions are cut off by the board boundary.
2. Build Forks — the Key to Winning
A fork is a position where you have two open-ended threats simultaneously — for example, two separate lines of three with open ends. Your opponent can only block one, so the other becomes an unstoppable four. Learning to set up forks (and recognise when your opponent is building one) is the single most important Gomoku skill.
3. Understand Open vs Closed Lines
An open-ended three (three in a row with both ends empty) is vastly more dangerous than a closed three (one end blocked). Open threes can become open fours, which are unblockable. Always prioritise creating open sequences and blocking your opponent's open sequences.
4. Think Ahead — At Least 3 Moves
Good Gomoku players look 3–5 moves ahead. Before placing a stone, ask: "What will my opponent do? What will I do after that?" Many winning sequences in Gomoku are forced — a series of threats that each require an immediate response, culminating in a fork that cannot be stopped.
5. Don't Just Defend
Reactive play loses in Gomoku. If you spend every move blocking, your opponent controls the initiative and will eventually create an unstoppable fork. When you block, try to place your stone where it simultaneously defends and builds one of your own sequences.
6. Learn Common Patterns
Experienced players recognise patterns instantly: the open four (unblockable), the broken three (X·XX or XX·X where · is the gap), the double three (a fork of two open threes), and the four-three fork. Study these patterns and you'll see them emerge naturally during play.
Gomoku vs Go — What's the Difference?
Because both games use black and white stones on a grid, people often confuse Gomoku and Go (also called Weiqi or Baduk). They are fundamentally different games:
- Objective: In Gomoku, you line up five stones. In Go, you surround territory and capture enemy stones.
- Complexity: Go has roughly 10170 possible board positions (on a 19×19 grid). Gomoku on 15×15 has about 10105 — still enormous, but Go is incomparably more complex.
- Game length: Gomoku games typically last 30–60 moves. Go games average 200–300 moves.
- Captures: Go features stone capture. Gomoku (in standard rules) has no capture mechanic.
- Learning curve: Gomoku can be enjoyed immediately by beginners. Go requires learning concepts like life and death, ko, and seki before competitive play.
Both games are excellent tests of strategic thinking, but they appeal to different tastes. If you love the simplicity-meets-depth of Gomoku, you might enjoy Go as a next step in your strategy game journey.
History of Gomoku
Gomoku originated in ancient China and was traditionally played on Go boards (19×19). The earliest records date back over 2,000 years, making it one of the oldest board games still played today. The game spread to Japan during the Heian period (794–1185), where it became known as Gomoku Narabe (五目並べ, meaning "five points line-up").
In the 19th and 20th centuries, Gomoku gained popularity in Europe under names like Gobang. Competitive Gomoku tournaments began in Japan in the early 1900s. In 1988, Swedish mathematician Victor Allis proved that on a 15×15 board with standard rules, Black (the first player) has a winning strategy. This led to the development of tournament rules like the swap rule and Renju (a restricted variant) to balance play.
Today, Gomoku is played worldwide — online, in tournaments, and casually. The game remains a popular introduction to abstract strategy, bridging the gap between simple alignment games like Tic-Tac-Toe and deep strategy games like Go and Chess.
Frequently Asked Questions
More Puzzle & Strategy Games
If you enjoy Gomoku, check out these other free games on our site: