Five In A Row

Board game where players align five pieces in a row.

Play Now

About

Five in a Row (Gomoku) is an ancient connection game played on a grid. Two players alternate placing stones, and the first to create an unbroken line of exactly five stones — horizontally, vertically, or diagonally — wins. It's deceptively simple to learn and surprisingly deep to master.

The strategic complexity of Gomoku comes from the interplay of offense and defense. Building toward five in a row is the obvious goal, but you must simultaneously block your opponent's threats. When multiple threats overlap, forcing your opponent to respond to one while the other completes, that's when Gomoku rewards real tactical thinking.

Games are typically 10–20 minutes and run to a clear conclusion. The browser version handles detection and win conditions, leaving you free to focus purely on placement strategy.

How to Play

  • Click any empty intersection on the grid to place your stone.
  • Alternate turns with your opponent (or AI), placing one stone per turn.
  • Build a connected line of exactly 5 of your stones in any direction.
  • Block your opponent's lines before they reach 5.
  • First to create an unbroken line of 5 wins the game.

Tips

  • Center openings are stronger — the center offers more winning directions.
  • Create "open fours" (four in a row with open ends) — they're impossible to block simultaneously.
  • Respond to your opponent's double threats immediately or you'll lose.

History

Gomoku originated in Japan and has been played for centuries, with origins possibly in China. The name means "five pieces" in Japanese. The game spread globally in the 20th century and has been extensively studied by game theorists. It was proven in 1993 that with optimal play, the first player always wins on an unrestricted board — leading to the development of "Renju" rules that restrict the first player's opening moves to preserve balance.

Play Five In A Row Now