🧾Tools
⚫
Games & Randomizers

Gomoku (Five in a Row)

Gomoku (also known as Five in a Row) is a free online strategy board game. Play against a smart AI opponent. The goal is to be the first to get exactly five stones in a continuous horizontal, vertical, or diagonal row.

💡

About this tool

Gomoku (also known as Five in a Row) is a free online strategy board game. Play against a smart AI opponent. The goal is to be the first to get exactly five stones in a continuous horizontal, vertical, or diagonal row.

Games & Randomizers#gomoku#fiveinarow
Live tool · runs in your browser
Your Turn (Black)

How to use Gomoku (Five in a Row)

  1. Start the game — You play as Black and always go first.
  2. Place a stone — Click any empty intersection on the board.
  3. The AI responds — The computer will place a white stone.
  4. Win the game — Be the first to get 5 stones in a row.

Key features

  • Play against a smart AI
  • Classic 15x15 board
  • Highlights winning line
  • Instant start, no signup
  • Mobile-friendly interface

What is Gomoku?

Gomoku, which translates to 'five pieces' in Japanese, is a classic abstract strategy game. It's played on a Go board (a 15x15 grid). Players take turns placing black and white stones, trying to form a continuous line of five.

The Strategy of Five in a Row

While the rules are simple, the strategy gets deep. You need to balance offense and defense. You want to create 'open threes' and 'open fours'—lines where your opponent cannot block both ends at the same time.

Gomoku vs. Tic-Tac-Toe

Think of Gomoku as Tic-Tac-Toe for grown-ups. Because the board is much larger (15x15 vs 3x3), draws are almost impossible. It requires forward planning and pattern recognition.

Playing Against the AI

Our AI isn't just making random moves. It scans the board for your potential winning lines and tries to block them, while also trying to build its own attack. If you can beat it, you're playing well!

The History of the Game

Gomoku originated in East Asia and is extremely popular in Japan, China, and Korea. It's often played as a casual game, but there are also professional tournaments.

Tips to Beat the AI

Focus on the center of the board. Try to create multiple threats at once (like two open threes intersecting). If you just play defensively, the AI will eventually overwhelm you.

Pro tips

  • Control the center of the board
  • Look for 'double threats'—creating two winning lines at once
  • Watch the AI's moves closely to see what it's trying to set up

Common use cases

  • Brain training
  • Casual strategy gaming
  • Playing against a computer
  • Learning board games

Frequently asked questions

What is Gomoku?+

Gomoku is a traditional strategy board game played on a 15x15 grid. It's essentially an advanced version of Tic-Tac-Toe where you need five in a row instead of three.

How do you win?+

Get exactly five of your stones in a row (horizontal, vertical, or diagonal).

Who goes first?+

In this version, the human player (Black) always goes first.

What is Renju?+

Renju is a professional version of Gomoku with stricter rules for the first player to balance the game. This tool uses the simpler standard Gomoku rules.

Is the AI smart?+

The AI evaluates lines and tries to block your attempts while building its own lines. It's challenging but beatable.

Can I play with a friend?+

This version is single-player against the computer. Pass-and-play might be added in the future.

Does it work on mobile?+

Yes, the board scales to fit your screen.

Is it free?+

Yes, 100% free.

Need invoicing, billing & inventory?

Try ShopBill Pro — the full business software. Free plan available.

Try ShopBill Pro free →

Related tools

📚 Read more about Gomoku (Five

Guides and articles related to this tool.