Gomoku (Five in a Row)
Gomoku, or five in a row, on a 15×15 board against the computer.
Our variant: 15×15 gomoku, exactly five in a row. Be the first to line up exactly five stones.
Rules at a glance
- The board has 15×15 lines and stones are placed on the intersections. You play black and move first.
- Players take turns placing one stone on any empty intersection. Stones never move and are never removed.
- An unbroken line of exactly five stones of your colour wins — horizontal, vertical or diagonal.
- Six or more stones in a row do not win: our variant needs exactly five.
- If the board fills up without a winner, the game is a draw.
- Pick the computer level before the game; changing it starts a new game.
How to play against the computer
Tap an empty intersection and the computer replies on its own. There are five AI levels; the strong ones immediately block your open threes and fours. A first move near the centre is a sensible start. The browser version has no undo.
Your game is saved only in this browser: moves are not sent to a server and no registration is needed. Clearing the site data removes the save. A browser game cannot be moved into the app yet.
Strategy
Gomoku is all about open lines. An open three, three stones with both ends free, forces a reply, otherwise it becomes an open four that cannot be stopped. Place stones so that one move creates two threats at once. Do not forget defence: block the computer’s open threes straight away. And remember our variant: a sixth stone in a line does not win, so sometimes the length of a line protects you by itself.
Tips for your first game
Before every move, look at the whole board, not only at the opponent’s last move. Check direct threats first, then look for a move that leaves you several good continuations. After a game, go back to the moment things went wrong and try a different reply.
- An open three matters more than a lone stone; check both ends.
- Do not rely on a sixth stone, which is not a win in this variant.
- When the opponent builds a four, find the defence first.
Try three games in a row at the same level. In the first, learn which moves are possible at all; in the second, predict the computer’s reply before you move; in the third, look for the moment you had to change your plan. If a rule seems unclear, go back to the list above and check it on a real position. The computer replies quickly, but there is no clock, so take as long as you like. Raise the level once you stop repeating the same mistakes. With a child, start at the easiest level and talk through every move.
Frequently asked questions
How many stones must be in a row?
Exactly five. A line of six or more does not win.
Who moves first?
Black, which is you.
How many difficulty levels are there?
Five, from Beginner to Master.
Do I need to register to play?
No. The game is free and runs right in your browser, with no sign-in and no ads. Your game stays on this device until you clear the site data.
Can I play with my family?
In the AllWeDo app you can also play gomoku with your family: invite someone right in the family chat and each of you plays on your own device.
Play with your family in the AllWeDo app
In the AllWeDo app you can also play gomoku with your family: invite someone right in the family chat and each of you plays on your own device.
AllWeDo is an app for families: a shared chat, tasks, a calendar, shopping lists and games. No ads and no trackers.
Android — APK from the website · Mac — download from the website · iPhone and iPad — coming soon · Windows — coming soon. AllWeDo is not in app stores yet.