Ludozio
Games · Board · Gomoku

Gomoku

Time 0:00 Moves 0

Rotate your phone

This game is wider than a portrait screen. Turn your device sideways for comfortable play.

How to play Gomoku

Gomoku, or "five in a row", pits you against the computer on a 13x13 board. You place the black stones, the computer answers in white, and the first to line up five stones wins. Three computer levels, from easy to hard, with no account and no install.

  1. Place a stone each turn You start with the black stones. Click an empty intersection to drop a stone, then the computer places one in white. Players keep alternating, one stone at a time.
  2. Aim for five in a row Your goal is to line up five of your stones with no gaps: across, down or diagonally. The first colour to complete that line wins the game.
  3. Stones stay put Unlike checkers or chess, a stone you place stays where it is until the end. You never move or remove stones: each turn only adds one more to the board.
  4. Fill up or win If a player completes a line of five, they win instantly. If the board fills up with neither colour reaching five in a row, the game ends in a draw.
Full rules

Gomoku, or "five in a row", is played by two on a 13x13 grid. You place the black stones, the computer plays white, and you move first.

On your turn, click any empty intersection to place a stone. The goal is to line up five of your stones in a row in any direction: across, down or diagonally. The first to do so wins the game; if the board fills with no line, the game is a draw. Unlike Connect Four, stones do not drop, you are free to place each one wherever you like.

The computer does not look dozens of moves ahead, that would be far too slow on such a large board. Instead it scores every empty cell by summing the value of the patterns it would create for both colours: an open four is worth a fortune, an open three is still a serious threat. On easy it only wins, blocks and plays near the centre; on medium it applies this scoring within a small radius; on hard it uses it in full, weighting your threats slightly higher so it defends well. Undo to take a move back, or ask for a hint to see a strong move.

Playing tips
Build an open three

A row of three stones with both ends free threatens to become an unstoppable four. Your opponent is forced to block it, which hands you the initiative and time to set up your next threat.

Make a double threat

Look for a move that opens two fours at once. The computer can only block one per turn, so the other line lets you complete five on the following move.

Watch the opponent's four

The moment the computer lines up four stones with an open end, you must block it right away. An open four left alone means you lose on the next move.

Control the centre early

The middle of the board opens the most directions to build a line. Placing your first stones near the centre multiplies your options and limits the opponent's.

Frequently asked questions

Do you need exactly five, or does more also count?

A line of five stones in a row wins the game. The game files set no rule against longer lines, so six or more stones in the same direction also count as a win. The aim is simply to reach at least five in a row.

Are the computer levels really different?

Yes. On easy the computer only wins when it can, blocks your threats and plays near the centre. On medium it scores cells within a small radius; on hard it uses that scoring in full and weights your threats more heavily, so it defends better.

Who moves first?

You always do, with the black stones. The computer plays white and responds after each of your moves. Moving first gives a slight edge, as long as you use it to seize the initiative in the opening.

Do I need an account to play?

No. Gomoku runs straight in your browser with no sign-up or login. You can play as many games as you like and switch levels whenever you want.

Can I play offline?

Yes. Once the page has loaded, everything runs in your browser and no connection is needed to play. You can keep going even without a network.

Is there a daily puzzle to catch?

No. Because Gomoku is played against the computer, there is no daily grid: every game is generated on the fly. Come back as often as you like and there is always a fresh game waiting.

Come back tomorrow Five puzzles a day, the same for everyone. See today's five
This grid
LevelEasy