Gomoku

How to play gomoku: the rules in one page

Gomoku is a two-player game: you take turns placing black and white stones, and whoever gets five in a row first wins. You can learn the rules in a minute, but to win you need to read what your opponent is up to. This page goes from the board to forbidden moves, and then you can start a game of gomoku online right away.

The board and the stones

How a game goes

How to win

Across, down or diagonal — the first player to line up five stones wins.

Black makes five in a row across and wins.

If the board fills up and nobody has five, it’s a draw. That almost never happens; the game is usually decided long before.

Freestyle and standard rules

The two rule sets differ in just one thing — whether more than five counts:

Black makes six in a row: a win under Freestyle, not under Standard.

If it’s your first game, pick Freestyle. Standard asks for more precise reading and is more common in tournaments. Our free gomoku lets you choose either.

Renju: forbidden moves for black

The player who moves first has a big advantage. To make things fair, serious tournaments often use renju rules: black may not make the three shapes below — doing so loses on the spot. White has no restrictions.

Double three: black plays the dashed circle and gets two open threes, across and down. Under renju rules this move is forbidden.
Double four: black plays the dashed circle and gets two fours, across and down. Also forbidden under renju rules.

Under renju, black’s main way to win is the four-three, which is always allowed.

Some people play that neither side may make a double three — agree on it before you start. This site currently offers Freestyle and Standard only, with no forbidden moves.

Tournaments also use opening rules such as Swap2: one player sets up the first few stones, and the other then picks black or white. That way nobody dares to set up something too one-sided.

Why moving first is an advantage

The first player is always one stone ahead, so their attack is always one step faster. Under freestyle rules with no forbidden moves, it has been proven by computer that black wins with perfect play.

So when you play a friend, take turns being black. Against the AI here you can pick your color, and in online play the colors swap with every rematch.

Three tips for beginners

  1. Start in the middle: near the center you can grow in eight directions; at the edge you lose half of them.
  2. Deal with open threes first: three in a row with both ends open becomes an unstoppable open four next move. See how to block an open three.
  3. Make two threats with one move: your opponent can only block one spot at a time, so a four plus an open three wins. That’s called a four-three.

To learn more shapes, see the gomoku patterns page. To learn how to win, read how to win at gomoku.

Play a game

Now that you know the rules, the fastest way to improve is to play. Start with the beginner AI, then move up to intermediate — it starts making open threes you have to block. Want to play a friend? Open a room for two-player gomoku from the home page. No sign-up, no download.

FAQ

Do gomoku and Go use the same board?

Similar, but not the same. Go uses 19 lines; gomoku usually uses 15. In both, stones go on the intersections, but in gomoku stones are never captured.

Does black always move first?

Yes, in gomoku black always moves first. Because that’s an advantage, players take turns being black, or use rules like renju or Swap2 to keep things fair.

Does six in a row win?

It depends on the rules. Freestyle: yes. Standard: no, the game goes on. Renju: six in a row is a forbidden move for black and loses, but it wins for white.

What are forbidden moves?

Under renju rules, three shapes black may not make: double three, double four and overline. If black makes one, black loses. White has no such limits.

Does the first player always win in gomoku?

Under freestyle rules with no forbidden moves, computers have proven that the first player wins with perfect play. But people rarely play every move perfectly, so real games go both ways.

Can I play gomoku in my browser?

Yes. This site lets you play the AI or other players online straight away — no download, no sign-up, on phone or computer.