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.
How to use Gomoku (Five in a Row)
- Start the game — You play as Black and always go first.
- Place a stone — Click any empty intersection on the board.
- The AI responds — The computer will place a white stone.
- 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.
Related tools
📚 Read more about Gomoku (Five
Guides and articles related to this tool.

Why Paying the "Minimum Due" on Your Credit Card is a Trap (2026)
If you have a ₹1 Lakh credit card bill at 36% interest, paying only the minimum due will take you over 10 years to clear it. Here is the exact math and how to escape.

How Much Home Loan Can I Get on a ₹60,000 Salary? (2026 Guide)
If you earn ₹60,000 per month, you can typically get a home loan of up to ₹36 Lakh to ₹45 Lakh. Here is the exact calculation, FOIR rules, and eligibility table for 2026.

MCA Fee Calculator: The True Cost of Registering a Company in India
Registering a company in India costs ₹0 in MCA fees if your capital is under ₹15 Lakh. Here is the exact SPICe+ fee structure, state stamp duty differences, and true costs.