Look at the position, then see how this board scores it
PositionHow this board scores it
An empty intersectionMay be played
An intersection that already has a stoneCannot be played again
Five of one color in a continuous row, column, or either diagonalStops at once. That side wins
Six or more on the same straight lineA win in freestyle; not a win in exact five
One move that finishes two directions at onceOne win, and the game stops
Empty space between stones of the same colorNot yet connected. Play continues
An opposing stone between themThat line is cut. Play continues
Five stones that bend around a cornerNot five in a row. Play continues
A double-three or a double-fourLegal. Not a loss
All 225 intersections filled, and still no fiveA draw
The other side accepts a draw offer in AI play or onlineA draw. A refusal continues the game
Same-screen two-playerNo draw button. Only a full board draws

Stones sit on intersections, not in squares

The board has 15 lines by 15 lines: 15 horizontal and 15 vertical, 225 intersections in all. A stone sits where two lines meet. The square enclosed by four lines is empty space. There is no point in its middle.

Black plays first. The sides then alternate, one stone each turn. The single ringed stone in the figure is H8, where column H meets row 8. Every empty crossing around it can be played. The middle of a square cannot.

The ringed stone is H8, on the crossing. There is no point in the middle of a square.

A gap, a cut, or a bend is not a line

Five in a row is one color on one straight line, with no empty point and no opposing stone between them. Count the row, the column, and each diagonal on its own. A chain that turns a corner borrows stones from two lines, so it is not five.

The first figure leaves a gap: D8, E8, and F8 are black, G8 is empty, and H8 and I8 are black. That is three stones and two stones, so the game does not end. The second figure is cut: D8 and E8 are black, F8 is white, and G8 and H8 are black. The white stone on F8 splits the row. The third figure bends: D9, E9, F9, F8, and F7 are five black stones that turn a corner. The row has three and the file has three. No straight line reaches five.

G8 is empty. The black stones on either side do not make five.
The white stone on F8 cuts the black stones. This row has no continuous five.
Five black stones bend. The row has three and the file has three. Neither is five in a row.

Four directions, five or more wins

Start with exactly five. The horizontal five is on row 8: D8, E8, F8, G8, H8. H8 is the fifth stone and has the ring, and I8 is empty. The vertical five is on column H: H11, H10, H9, H8, H7. H7 has the ring. One diagonal runs down to the right: D11, E10, F9, G8, H7. The other runs the opposite way: H11, G10, F9, E8, D7. All four directions are scored the same way.

Under the default, freestyle, six or more wins too. In the overline figure, F8 joins D8 through I8, six black stones in all. The move has already passed five. Freestyle scores it as a win. The extra stone does not cancel the win. If this game is exact five, that same six-stone line does not win, and play continues.

One move that finishes two directions is a single win. In the last figure, the ringed F8 completes the horizontal five from D8 to H8 and the diagonal D10, E9, F8, G7, H6. The game stops. Do not play on to prove the other line.

Horizontal five: D8 to H8. The ringed H8 is the fifth stone, and Black wins on this move.
Vertical five: H11 to H7. The ringed H7 is the fifth stone.
Down to the right: D11, E10, F9, G8, H7.
The other way: H11, G10, F9, E8, D7.
F8 joins D8 through I8 into six black stones. An overline wins in freestyle; it does not in exact five.
The ringed F8 finishes the horizontal five and the diagonal together. One win, and the game stops.

An occupied intersection cannot be played again

Stones do not move, jump, or capture. An opposing stone stays on its crossing until the game is over.

G8 is white and H8 is black. Neither point can be played again. The next stone has to go on an empty intersection.

G8 and H8 are occupied. Neither crossing can be played again.

This board has no Renju bans

Black may play a double-three or a double-four. Under freestyle an overline wins for Black; under exact five it does not. White is held to the same standard. The Renju bans that limit Black, double-three, double-four, and overline, are not in force on this board.

Freestyle 15×15 with no bans favors the player who moves first. Allis proved in 1993 that freestyle 15×15 Gomoku is a first-player win. That is a result about the rules. It is not a claim that this site plays the proof out. Players can swap colors each game. In an online room they can swap before the first stone.

How bans are judged, rule 9.3, and the 26 openings are on the rulesets page. What this page settles is the set played here: every empty intersection is legal, and a Renju ban is not a loss.

Five in a row, a full board, and a draw offer end differently

The moment five or more stones line up in any direction, the game stops, and the side that played the stone wins. There is no need to wait for a resignation, and no need to fill the board.

When all 225 intersections are full and there is still no five, this board calls a draw. If the board is not full and there is no five, the game is not a draw.

AI play and online play can offer a draw. Online, the other person must agree. Agreement makes it a draw, and a refusal continues the game. Against the AI, the AI can also refuse, and the game continues. Same-screen two-player has no draw button and no resign button. A same-screen game ends only by five in a row, or by filling all 225 intersections.

AI play and online play also allow resigning. A resignation ends the game at once, and the other side wins.

Undo and hint do not change the result

The result depends only on the six boundaries in this guide. Undo, hint, and replay are practice tools, and they leave the winning rules as they are. Hint appears only against the AI, and only on your turn. Undo against the AI takes back your last move and the AI reply together. Same-screen undo takes back only the latest stone. Online has no undo. The position already synced in the room is the position.

Before a same-screen game, agree on whether a mis-tap counts as an undo. On a phone, check the landing spot before you let go. If the picture does not match the game, do not settle the result from a screenshot. Start a new game.

Two positions worth recognizing

Five stones with a gap have not won yet

In “A gap, a cut, or a bend is not a line,” the first figure shows D8, E8, and F8 black, G8 empty, and H8 and I8 black again. The line is broken in the middle, so this board does not end the game.

A move that finishes a row and a diagonal wins once

In “Four directions, five or more wins,” the figure with the ringed F8 shows both the horizontal five and the diagonal. F8 completes D8 to H8 and also D10, E9, F8, G7, H6. Black wins on that move, and the game stops.

Check these three points before you play

  1. Play where the lines cross. You cannot play in the middle of a square, and you cannot play again on a crossing that already holds a stone.
  2. Under freestyle an overline wins; under exact five it does not. A double-three and a double-four are legal. Do not bring in Renju bans after the game has started.
  3. If there is no five and the board is not full, the game is not over. Same-screen play cannot record a draw by offering one.

Common Gomoku Questions

Why does a line of six win immediately?

Under the default, freestyle, five stones in a continuous line is the minimum and six or more wins as well. If Settings or the room picked exact five, that same six-stone line does not win. Renju is the set that treats a Black overline as a forbidden move. That set is not playable here. It is on the rulesets page.

Can either diagonal make five in a row?

Yes. From upper left to lower right, and from upper right to lower left, five stones of one color on consecutive intersections end the game the same way a horizontal or vertical five does. The figures for all four directions are in “Four directions, five or more wins.”

If Black plays a double-three or a double-four, is that a loss?

No. Both moves are legal. This board only asks who first makes a continuous line of five or more.

What happens if the board fills up?

If all 225 intersections hold a stone and there is still no five, this board calls a draw. A board that is not yet full is not that draw.

Can a player offer a draw or resign?

AI play and online play can offer a draw. Online, the other person must agree. Against the AI, the AI can also refuse, and the game continues. Both of those modes can resign, and the other side then wins. Same-screen play has no draw offer and no resignation.

Are the winning rules the same for same-screen play and online play?

They are. The default is Black first, five or more wins, and a full board is a draw. You can also pick exact five, where an overline does not win. Same-screen play picks it in Settings; an online room picks it when the room is created. The controls differ. Same-screen play shares one device, allows undo, and has no draw offer. Online play syncs two devices through the room, has no undo, and can offer a draw, which counts only when the other person agrees.