Arrow Jam GoPlay free

Gomoku (Five in a Row)

Line up five stones before your opponent does. Play against the computer on Easy, Medium or Hard, or two players on one device.

More free games

How to play Gomoku

  1. The board has 15 lines each way. Stones go on the points where two lines cross, not inside the squares.
  2. Black moves first. After that the players take turns, and each turn is one stone on any empty point.
  3. The first player with five stones in an unbroken row wins. The row can run across, down or along either diagonal. On this page a row of six or more wins as well.
  4. Stones are never moved and never taken off the board. If the board fills up and nobody has five, the game is a draw.

With a mouse, click a point to place your stone. On a touch screen the Tap twice switch is on: the first tap aims, with two dashed lines showing the exact point under your finger, and a second tap on the same point places the stone. You can slide your finger to move the aim. On a keyboard, the arrow keys move a cursor and Enter places the stone.

Gomoku strategy

Gomoku is a game of threats. A move that forces an answer keeps the initiative, and the player who can make two threats with one stone wins, because only one of them can be blocked. Three shapes do most of the work:

Open three: White must block an end now
Open four: two ways to five, too late to stop
Four-three: one stone, a four and an open three

Gomoku vs computer

The computer opponent runs in your browser, so there is no waiting for a server. It has three levels, and each level keeps its own game and its own win and loss count.

Black has the first move and the advantage that comes with it. If a level feels too easy as Black, switch to White with the button above the board before moving up a level.

2 player mode

The 2 Players tab is pass-and-play Gomoku on the same device: Black places a stone, then White, and so on, with no computer involved. The red dot marks the last stone, Undo takes back one stone at a time without a limit, and the game is saved if you close the page. For a fair match, swap colours after each game, since Black starts with an edge. This mode is for two people at one screen; it does not connect to another player over the internet.

FAQ

Is Gomoku the same as Five in a Row and Gobang? Yes. Gomoku is the Japanese name of the game; Five in a Row, Gobang and Connect 5 are English names for it. In Korea it is called Omok and in China Wuziqi. The idea is always the same: the first to line up five stones wins.

Are there forbidden moves here? No. This page plays freestyle Gomoku: any empty point is a legal move for both colours, and a line of six or more stones wins just like a line of five.

What is the difference between Gomoku and Renju? Renju is the tournament form of the game. Because moving first is a big advantage, Renju forbids Black to make a double three, a double four or a line longer than five. Freestyle Gomoku, the version on this page, has none of those limits.

How is Gomoku different from Connect 4 and from Go? In Connect 4 the pieces drop to the bottom of a 7×6 frame and four in a row win. In Gomoku a stone can go on any empty point of a 15×15 board and you need five. Go uses the same kind of board and stones, but there you surround territory and capture stones; in Gomoku nothing is ever captured.

Who moves first, and does it matter? Black moves first, and it matters a lot. In 1993 the computer scientist Victor Allis showed that Black wins a 15×15 game without opening restrictions if both sides play perfectly. Against the computer you can choose White to make the game harder for yourself.

Can I play online against a friend? Not over the internet. The 2 Players tab is pass-and-play: two people share one phone, tablet or computer and take turns. There is no online multiplayer and no account on this page.

Is it free, and does it work at school? It is free, with nothing to download or install and no sign-up. The game runs entirely in your browser, on phones, tablets, Chromebooks and computers, so it works wherever this site opens.

Is my game saved? Yes, in this browser. Each of the four tabs (Easy, Medium, Hard and 2 Players) keeps its own game, and your record against each level is kept too.

More games on this site

For a puzzle you solve alone, place one cat queen in every row, column and colour in the queens puzzle, draw one line through every cell in Number Trail, balance circles and diamonds in Duo Balance, cut a grid into rectangles in Quilt Blocks, or trace hidden words in Word Weave. All of them are free and run in the browser, like the arrow puzzle the site started with. For something calmer than a match against the computer, play water sort online: pour liquid from tube to tube, with no timer.