Gomoku
5-in-a-Row Strategy Game
Loading game...
5-in-a-Row Strategy Game
Gomoku, also known as Five in a Row or Gobang, is a traditional Japanese board game that dates back to the Edo period. The name translates to "five stones" — the first player to align five of their stones in an unbroken line wins. While it looks like an expanded version of Tic Tac Toe, the 15x15 grid transforms the game into something far more complex. There are more possible Gomoku positions than there are atoms in the universe, making it a game of deep strategic planning rather than simple pattern recall.
The most critical concept in Gomoku is the difference between a closed three and an open three. A closed three has one endpoint blocked by an opponent stone — it can be easily stopped. An open three has both endpoints free, meaning your opponent cannot block all possible extensions in a single move. If you allow your opponent to build an open four (four stones with both ends free), the game is effectively over — you cannot block both sides. Skilled Gomoku play is about creating multiple attacking lines simultaneously, forcing your opponent onto the defensive.
Gomoku has a strong competitive scene, particularly in East Asia. The sport is governed internationally by the Renju International Federation (RIF), which organizes world championships and maintains official rules. In tournament play, the first player (Black) faces restrictions to counter the first-move advantage — Black cannot create double threes, double fours, or overlines (six or more stones in a row). These Renju rules ensure competitive balance at the highest level. Our version uses standard free-play rules without Renju restrictions, making it accessible for casual players while still offering a serious challenge.
Our AI opponent uses line-tracking heuristics to evaluate threats across the entire 15x15 board. It scans every possible line of five in all four directions — horizontal, vertical, and both diagonals — scoring each by how many stones you have, how many belong to the opponent, and how many slots are open. The AI prioritizes blocking your open threes before building its own attacks, creating patient, methodical games that reward careful planning over reckless aggression.
In competitive Gomoku, the first-move advantage is so significant that special rules exist to balance play. The Renju rules, used in international tournaments, restrict Black from creating double threes, double fours, or overlines (six or more stones). The "swap rule" is another balancing mechanism: after the first five stones are placed, the second player can choose to swap colors — effectively forcing the first player to play an opening that is strong but not overwhelming. Our version uses standard free-play rules without these restrictions, but understanding them helps you evaluate your own play. If you win most games as Black, consider whether you have developed your White defense enough.
Gomoku is free to play in your browser with no sign-up or download. It works on desktop and mobile, making it an excellent way to pass the time while training your strategic thinking. For the dedicated vs-AI landing with difficulty tactics, try Gomoku vs AI free. For a simpler alignment game, try Connect Four — the same pattern-building challenge in a vertical format.
Play Gomoku on a 15x15 board against a line-tracking AI that scans every possible five-stone line before each move. It prioritizes blocking your open threes before building its own attacks.
Gomoku (Five in a Row or Gobang) is played on a 15x15 grid — far more complex than Tic Tac Toe, with thousands of possible opening sequences. Two players place stones, and the first to connect five in a row wins. The key concepts are open threes, double threes, and building multiple threat lines simultaneously.
Explore more strategy games on our Games Hub.