Gomoku is the 2 player game of five in a row: take turns placing black and white stones on a 15 by 15 grid, and the first to line up five of your stones across, down or diagonally wins. Play it here for free with a friend on one phone, tablet or computer, or against the computer on three levels. It works offline once the page has loaded, and there is nothing to install. The rules take a minute to learn and a game usually lasts 5 to 15 minutes. Gomoku is also called Gobang, Wuziqi (五子棋) in China, Omok in Korea and Gomokunarabe (五目並べ) in Japan; Renju is a tournament rule variant of it.
Friends on their own phones? Play gomoku online with friends: start a room, send the link, and each of you places stones from your own device.

How to play Gomoku
- The board has 15 lines in each direction, which makes 225 points. Stones go on the points where lines cross, not inside the squares.
- Black always moves first. After that, players alternate, placing one stone per turn on any empty point.
- Stones are never moved and never captured. Every stone stays where it was placed until the game ends.
- The first player to make an unbroken line of five of their own stones wins. The line can run across, down or along either diagonal.
- By default a line of six or more also wins (the freestyle rule). Pick Exactly five in the setup if you want those longer lines, called overlines, not to count.
- If all 225 points are filled and nobody has five in a row, the game is a draw. That is rare, because one player usually breaks through long before.
For every rule in detail, the exactly-five option, renju and fair opening rules such as swap2, read how to play Gomoku.
Prefer to watch? See the 4-minute video on the Gomoku rules page.
Play Gomoku on one device
This version is built for two people sharing one screen. Type both names, decide who plays Black, and start. The bar above the board always shows whose turn it is.
- Aim, then place: points on a phone-sized 15×15 board are small, so on a touch screen your first tap shows a see-through stone and a crosshair where you aimed. Tap the same point again, or press Place, to put it down; tap somewhere else to aim again. With a mouse, a single click places the stone. You can switch “Tap twice to place” on or off in the More menu.
- Keyboard play: move around the board with the arrow keys and press Enter or Space to place a stone.
- Clear board: the most recent stone carries a small dot, so you can always find your opponent’s last move, and the winning five is ringed at the end.
- Pass screen (optional): switch it on in the setup or in the More menu to show a “Pass to Maya” screen between turns.
- Undo: placed a stone by mistake? Undo takes it back. Against the computer it returns you to your own previous turn.
- Rematch and score: after a game, Rematch starts a new one with the colors swapped, so the other player gets Black and the first move. A running score is kept for your session.
- Auto-save and offline play: the game is saved after every move, so a refresh or a closed tab doesn’t lose it, and it works with no connection once loaded.
Play against the computer
Choose vs Computer, pick the color you want to play and choose a level:
- Easy plays loosely. It always completes a five when it has one, but it often ignores your threes and sometimes misses a four. A good level for learning how lines grow.
- Medium never misses a five, always blocks your fours and answers every open three. It looks two moves ahead, so a carefully prepared double threat is the way to beat it.
- Hard looks further ahead, wins with long sequences of forcing fours when it finds one, and checks that its move doesn’t let your fours run away with the game. Expect to work hard for every win.
Black has the first move, which is a genuine advantage in Gomoku. If the computer feels too strong, take Black; if it feels too easy, give it Black and see whether you can hold on.
Quick tips
- Block open threes, not just fours. Three stones in a row with both ends free will become an unstoppable open four on the next move if you ignore them.
- Stay close to the action. Stones placed far from the others rarely help. Play where your lines and your opponent’s lines meet.
- Make two threats at once. A single stone that makes a four and an open three together is the classic winning move, because your opponent can only block one of them.
Our Gomoku strategy guide walks through a full game move by move and explains threes, fours and the 4-3 fork with diagrams. If you like lining up pieces, Tic-Tac-Toe is the three-in-a-row version on a tiny grid, Four in a Row adds gravity to the idea, and our list of pen and paper games has more games you can play with nothing but a grid.


