In Gomoku you win by being the first to get five stones in a row, horizontally, vertically or diagonally, on a 15×15 board. Good Gomoku strategy, though, isn't about counting to five: it's about making threats your opponent has to answer, until one move creates two threats at once. Below you'll find the rules as they work on triliza.net, the key threat shapes, how to defend, and the mistakes that cost games.
Gomoku rules on triliza.net
The version you play on our free online Gomoku game is freestyle Gomoku, with no forbidden moves:
- 15×15 board. Black (⚫) and white (⚪) take turns, placing one stone at a time on any empty point.
- Five or more in a row wins. If you connect six stones, that's a win too; it doesn't have to be exactly five.
- Stones stay where you put them. They never move and are never captured.
- A draw only happens if the whole board fills up without a five, which is very rare.
- Who goes first: after each finished game, the other player opens. So sometimes you have the first-move advantage and sometimes you don't.
You can play against the computer, as black, on three levels (😊 easy, 🧠 medium, 🔥 hard), or choose 2 Players to play a friend on the same device. On easy and medium the computer sometimes plays a random move near the stones, which makes them a good place to practise. On hard it always plays the move it scores best.
The threats you need to recognise
All of Gomoku strategy rests on a handful of shapes. In the table, X marks your stones, O marks your opponent's stones and _ marks an empty point.
| Shape | Example | What it means |
|---|---|---|
| Open three | _ X X X _ | If it isn't blocked, it becomes an open four. Your opponent has to respond. |
| Broken three | _ X X _ X _ | Just as dangerous as an open three, but harder for your opponent to spot. |
| Closed four (four) | O X X X X _ | Threatens five at one point. Your opponent is forced to block there. |
| Open four | _ X X X X _ | Two points to make five. It can't be stopped: the game is decided. |
The key is the double threat: a single move that creates two of these shapes at the same time. The most common winning one is the 4-3, a four and an open three made with the same stone. Your opponent has to block the four or lose on the spot, and then your three turns into an open four. The 3-3 (two open threes) and the 4-4 (two fours) work the same way.
Attacking strategy, step by step
1. Start near the centre
From the centre, every stone has room in all four directions. Near the edge, a line gets cut off by the border and loses one of its ends before your opponent even blocks it.
2. Place stones that work on two lines
A stone that belongs to both a horizontal and a diagonal line is worth double. "L" or "V" shapes of three or four stones are an ideal base for a double threat later on.
3. Keep the initiative
As long as your opponent is answering your threats, they aren't building their own. A closed four forces them to play on one specific point. Use it when it pushes them somewhere that doesn't help them, not just to "do something".
4. Look for a chain of fours
Advanced players often win with a chain of fours (what Gomoku players call a VCF, victory by continuous fours): every move threatens five, your opponent has only one reply, and in the end the last four comes with a second threat. Before you play, work it out: "if I threaten here and they block there, what's left?"
Defence: how to stop your opponent
- Check for fours first. If your opponent has four with an empty point for a fifth, block it, unless you win with your own move.
- Block open threes right away. One move later it will be an open four, and by then it's too late.
- Pick the right end. An open three can be blocked from either side. Choose the point that also breaks another of your opponent's lines or supports one of yours.
- Watch out for broken threes. The shape X X _ X slips past easily. The best point to block it is usually the gap in the middle.
- Defend with a counter-attack. If the move that blocks your opponent's line also gives you a three of your own, you gain time.
Common mistakes
- Only looking horizontally and vertically. Diagonals are easy to miss, and that's where most "sudden" losses come from.
- Building just one line. A lone four is blocked with one move. Without a second threat you won't win.
- Wasting threats. Every closed four you play without a plan is a threat you won't have later, when you need it.
- Playing away from the action. A stone in the corner, when everything is happening in the centre, hands your opponent a free move.
- Rushing. Before every move, glance in all four directions around your opponent's last stone.
First-player advantage and Renju
The player who starts has a big advantage. In 1993, Victor Allis and his colleagues showed through computer analysis that in 15×15 Gomoku black always wins with perfect play, both in the version where only exactly five counts and in freestyle. That's why Renju exists: there, black isn't allowed to make a double three, a double four or an overline (six or more). On triliza.net you play freestyle, but alternating who goes first keeps the score fairer.
If you enjoy this kind of thinking, try Super Tic-Tac-Toe, where every move sends your opponent to a different small board, or read our tic-tac-toe strategy guide, which uses the same double-threat idea on a smaller scale.
Frequently asked questions
Does six in a row count as a win?
Yes. In Gomoku on triliza.net you win with five or more stones in a row. Only in variants such as Renju does an overline of six not count for black.
What is the best first move?
In the centre or very close to it. If your opponent starts, put your first stone next to theirs or diagonally beside it, so you can both defend and build.
How do I beat the computer on hard?
The computer consistently blocks immediate threats, so a simple four isn't enough. Set up shapes where one stone makes a four and an open three at the same time, usually with one of the two lines on a diagonal.
Can I play Gomoku with a friend?
Yes, with the 2 Players mode on the same device. For more ideas, check out our list of games for two players.
Sources: Go-Moku Solved (David Eppstein, UC Irvine) · Go-moku family of games (ICGA) · Renju (Wikipedia)