Gomoku: Rules and How to Play

Gomoku is a board game for 2 players that takes about 10 minutes. The first player to line up five stones wins. Free. In-browser. No account.

Setup

Four in a rowA fifth here wins
A line of five — up, across or diagonal — wins the game.

How to play

Winning and scoring

Defaults on this site

Anything the party can change is listed in the house rules table.
ItemDefault on this site
Players2 players (set automatically by the party size)
Turn time limitNone by default (the host can set 30 or 60 seconds)
If someone drops mid-gameReopening on the same device returns you to your seat. If you do not return, the CPU plays in your place.
DrawsIn ranked play, a draw counts as halfway between a win and a loss for your rating.
Source of the rulesBased on the standard reference rules

Rules supervised by Qdan, Inc. (based on the standard reference rules)

House rules

Defaults follow the standard reference rules. The party can change these.

Default is this site’s setting. Changeable shows whether the party can change it.
NameDescriptionDefaultChangeable
Board sizeChoose between 15×15 and 19×19.15×15Yes
OverlineOverlineAn overline is six or more stones of one colour in a row. With this on, an overline wins; with it off, only exactly five wins and an overline does not count (for both colours). When the restrictions are used, black can never play a move that makes an overline, whatever this setting says.Six or more in a row also wins.OnYes
Opening restrictions (double three, double four, overline)Opening restrictions (double three, double four, overline)Black moves first and has the edge, so black alone gets moves it may not play. A double three makes two threes at once (a three becomes an open four with one more stone), a double four makes two fours (one move from five), and an overline makes six or more. A move that makes five is always allowed. Restricted points are marked on the board.Restrict black's moves. A restricted move cannot be played.OffYes
Swap who startsSwap the first player after each game.OnYes

Terms

Row
Stones of one colour standing in a line.
Four
A line that becomes five with one more stone.
Three
A line that becomes five with two more stones.
Overline
Six or more in a row. It wins on this site.
Opening restriction
A limit on black only. When it is on, black cannot play a double three, a double four or an overline.

FAQ

Can I change the board size?

Yes. The party settings offer 15×15 and 19×19. The default is 15×15.

Can I take a move back?

A stone stays where you put it and can never be captured. In games that show the Undo button you can ask to take one move back; against a person, it only goes back if they accept.

Can a game be drawn?

Yes. If the board fills with no line of five, it is a draw. With the restrictions on, it is also a draw when black has no playable point left. In ranked play, a draw counts as halfway between a win and a loss for your rating.

Who plays black?

The site decides. If you keep playing, the first player swaps after each game.

Can I turn off the overline win?

Yes, in the party settings. By default six or more in a row still wins. Switch it off and only exactly five wins, for black and white alike; a longer line lets the game go on.

What changes when the restrictions are on?

Black alone cannot place a stone that makes a double three, a double four or an overline. White is never restricted.

What happens if black tries a restricted point?

Nothing is placed. The point cannot be played and it stays black's turn, so you never lose a game by playing a restricted move.

What if a move makes five and a double three at once?

It can be played, and it wins. Making exactly five always takes priority over the restrictions.

How is this different from renju?

Renju is gomoku made into a competitive game with restrictions and opening rules. Only black is restricted (double three, double four, overline), and white wins even with an overline. Our default is unrestricted gomoku. With the restrictions on, you simply cannot play on a forbidden point — it does not lose the game as in renju — and no opening rules are added. For full renju, play our Renju game.

How is this different from Capture Five?

In Capture Five you can capture two adjacent enemy stones by closing them in at both ends, and taking five pairs (ten stones) also wins. In gomoku nothing is ever captured; the only goal is five in a row.

Play now with these rules

Last updated 2026-09-23 · Run by Qdan, Inc.