About Gomoku
Play Gomoku (Five in a Row) free online. Place stones on the board and connect five in a line to win. Play vs a friend or the computer — no sign-up needed.
How to use
- Choose your mode before the game begins: play against a friend on the same device for a head-to-head match, or challenge the computer AI for solo practice. The computer opponent evaluates the board position and responds with competitive moves, making it a good training partner for improving your pattern recognition skills.
- Click any empty intersection on the board to place your stone. Black always moves first, then players alternate turns. Once a stone is placed it cannot be moved or removed for the rest of the game, so every placement is permanent and strategic — think carefully before you commit.
- Alternate turns placing black and white stones while simultaneously building your own line and blocking your opponent's threats. The key to Gomoku is balancing offense and defense: if you only attack, your opponent will complete their line first, but if you only defend, you will never create a winning threat of your own.
- Connect exactly five stones in an unbroken row — horizontally, vertically, or diagonally — to win the game. Watch for open fours (four in a row with both ends open), which are nearly impossible to block, and double threats (creating two separate lines of three or four simultaneously), which force your opponent to concede one of them.
Frequently asked questions
What is Gomoku?
Gomoku, also known as Five in a Row or Gobang, is an abstract strategy board game for two players. It is traditionally played with black and white stones on a 15x15 or 19x19 grid (the same board used for Go). Players take turns placing one stone on an empty intersection, and the first player to form an unbroken line of exactly five stones — horizontally, vertically, or diagonally — wins. The game originated in Japan and has been popular across East Asia for centuries. Despite its simple rules, Gomoku has deep strategic complexity.
Can I play against the computer?
Yes — you can choose between playing against a friend on the same device or challenging the built-in computer AI. The computer evaluates threats and opportunities on the board to make competitive moves. Playing against the AI is a great way to practice recognizing attack patterns and defensive formations before facing human opponents. You can start a new game at any time to try different opening strategies.
What are the best strategies for winning at Gomoku?
The strongest Gomoku strategy is creating double threats — positions where you have two separate ways to complete five in a row on a single move. Since your opponent can only block one threat per turn, a double threat guarantees a win. To set these up, focus on building open threes (three stones in a row with both ends empty) because an open three can become an open four on the next move. Also control the center of the board early, as center stones participate in more potential lines. Avoid playing too close to the edges where your options are limited.
Is Gomoku the same as Go?
No — Gomoku and Go are completely different games that happen to use the same board and stones. In Go, players compete to surround territory and capture groups of opponent stones through encirclement, with complex scoring at the end. In Gomoku, the only objective is to place five stones in a row. Go is widely considered one of the most complex strategy games in existence, while Gomoku has simpler rules but still offers significant strategic depth. Both games originated in East Asia and are part of the same family of abstract board games.
Does the first player always win in Gomoku?
On a standard board without restrictions, Black (the first player) has a proven mathematical advantage and can force a win with perfect play. This was demonstrated through computer analysis. Because of this, tournament Gomoku often uses balancing rules like the Swap2 opening protocol, where the first player places two black stones and one white stone, and the second player chooses which color to play. Some rulesets also ban overlines (more than five in a row) or restrict opening moves to level the playing field.
What is an open four in Gomoku?
An open four is a line of four stones in a row where both ends are empty, meaning your opponent cannot block both sides in one move. Creating an open four essentially guarantees you will complete five in a row on your next turn. The strategic goal in Gomoku is to build toward open fours while preventing your opponent from creating them. If you can set up a double open three — two separate open threes created in a single move — your opponent faces an impossible dilemma and you win.
Is Gomoku free to play?
Completely free with no ads, no sign-up, and no downloads. The game runs in your browser on any device — phone, tablet, or desktop. If you enjoy Gomoku, try other strategy games like
Chess,
Nim, or
Mastermind.
Part of ToolFluency’s library of free online tools for Games & Fun. No account needed, no data leaves your device.