Gomoku rules and winning patterns
Guide · 5 min read
Gomoku, also called five in a row, takes a minute to learn and years to master. Two players take turns placing stones, and the first to line up five wins. Under that simple rule sit a handful of shapes that decide almost every game. This guide explains the rules, the patterns strong players look for, and how to practise them in Master Gomoku, which you can play online for free against the computer.
The basic rules
- The board is a 15x15 grid. Stones go on the intersections.
- Black moves first, then the players alternate one stone at a time.
- The first player to make an unbroken line of five stones horizontally, vertically or diagonally wins.
- If the whole board fills with no winner, the game is a draw.
That's freestyle Gomoku. Because moving first is a big advantage, competitive play usually adds restrictions for Black.
Renju rules: forbidden moves for Black
Master Gomoku uses Official Renju rules by default and lets you switch to Freestyle in the settings. Under Renju:
- Black may not make a 3-3 (one move that creates two open threes at once).
- Black may not make a 4-4 (one move that creates two fours at once, including two fours on the same line).
- Black may not make an overline (six or more in a row), and an overline does not win for Black.
- Black wins only with exactly five. A move that makes exactly five is always allowed, even if it would also form a forbidden shape.
- White has no restrictions. White may make 3-3, 4-4, and a line of six or more still wins for White.
In Freestyle mode none of this applies: five or more in a row wins for either side.
On Black's turn, Master Gomoku marks the forbidden points on the board (3-3, 4-4 or 6+), and a forbidden move is simply refused. That makes it a good place to learn Renju without memorising every edge case first.
Words you need to know
- Four: four stones in a line that can become five with one more move. Your opponent must block it.
- Open four: four in a row with both ends empty. It can't be stopped, because there are two winning points and only one blocking move.
- Three: three stones that can turn into an open four with one move.
- Open three: a three with space on both sides, such as
_ X X X _, or a split three like_ X X _ X _. If you ignore it, the next move makes an open four. - Closed (blocked) shape: one end is already covered, so it is far less dangerous.
Winning pattern 1: the open three
An open three is the basic threat in Gomoku. Making one forces your opponent to respond, usually by blocking one end. Every forcing move you make is a free tempo: your opponent is reacting while you build.
Split threes (X X _ X) are sneaky. They are just as dangerous as a solid three, but they are easier for a beginner to miss.
Winning pattern 2: the four-three
The classic way to win is the four-three: one move that makes a four and an open three at the same time. Your opponent must block the four, and then the three becomes an open four that can't be stopped.
The four-three is legal for Black under Renju. This is why strong Black players aim for it, while 3-3 and 4-4 are off limits.
Winning pattern 3: continuous fours (VCF)
A VCF (victory by continuous fours) is a sequence where every move you make is a four. Your opponent is forced to block each one, so they never get a free move, and the last four lands on a point that also completes a winning shape. Learning to spot a VCF is what turns a good player into a dangerous one.
Blocking: the defensive side
Most Gomoku games are lost by missing a threat, not by being outplayed. A simple priority list:
- Win if you can. If you have a four, finish it.
- Block their four. There is no choice here.
- Make your own four if it leads somewhere, since it forces a reply.
- Block their open three, usually at the end that also helps your own stones.
- Otherwise, build toward the centre and connect your stones.
When you block an open three, pick the side that does double duty. A block that also extends one of your own lines is worth far more than a purely defensive stone.
Opening habits
- Start in the centre. More directions are open, so your stones work harder.
- Play close to your own stones. Gomoku is a game of shape, and lonely stones rarely matter.
- Watch the diagonals. Beginners spot horizontal and vertical lines easily and lose to the diagonal one.
How to practise in Master Gomoku
Master Gomoku is built for exactly this kind of practice:
- 10 AI ranks from 18 Kyu to 9 Dan. The lowest ranks make deliberate mistakes so you can try out attacks. Higher ranks search deeper and look for continuous fours, and ranks from 6 Kyu up use an opening book. You can pick any opponent from the Masters list, and winning ranked games raises your own rank.
- AI Coach. Ask for a hint and the coach highlights a move with a reason, such as "block the opponent's four", "stop an open three" or "set up a 4-3 double threat".
- Live advantage bar. It shows who is ahead after each move, so you can see when a position starts slipping.
- Puzzle Dojo. 50 puzzles in five chapters: finishing fives and open fours, open threes and double threats, the four-three, continuous fours, and finally deeper Renju problems. There is also a new daily puzzle.
- Replays. Step back through your last game and ask the engine for the best move at any point.
- Choose your color (Black, White or random), turn on the two-tap confirm to avoid misclicks, or play a friend in 2-player pass and play on one screen.
A good routine: solve a few puzzles from the chapter you are working on, play a ranked game against an AI one step above you, then review it in Replays and find the move where the advantage bar turned.
Ready to try it? Play Master Gomoku online for free. Want something lighter afterwards? Browse the best free puzzle games in your browser.