Gomoku · five in a row

Gomoku online — 2 player

Five in a row on a 15×15 board — play a friend on one screen or the computer. Tap to preview, tap again to place.

Gomoku

Blackmoves first
Move 0
Whitesecond
A15B14C13D12E11F10G9H8I7J6K5L4M3N2O1

Black to move

Phone or tablet: tap a point to preview your stone, then tap it again (or press Place) to play. Mouse: click to play. Five in a row in any direction wins.

How to play gomoku

  1. Black moves first. Players take turns placing a stone on an empty point of the 15×15 grid. Black starts; stones never move once placed.
  2. Preview, then confirm on touch screens. Tap a point to see a see-through stone with guide lines, then tap the same point again (or press Place) to play it. Tap somewhere else to change your mind.
  3. Five in a row wins. Get five (or more) of your stones in an unbroken line — across, down or diagonally. The winning line is highlighted.
  4. Undo and new game. In 2-player mode Undo takes back one stone; against the computer it takes you back to before your last move. A full board with no five is a draw.

Shapes to know: open three, four, open four

Open three: both ends free — circled points block it
Split three: also an open three; block the gap
Four: one end blocked, one point makes five — block now
Open four: two points make five — it can’t be stopped
  • Open three — three stones in a line (or with one gap) and free space at both ends. Ignore it and it becomes an open four, so it must be answered.
  • Four — one move from five, with only one winning point. It forces an immediate block, which makes it a great tempo move.
  • Open four — two winning points at once. Your opponent can block only one: the game is won.

Gomoku strategy: check threats in order

Four-three: one stone makes a four and an open three
  • Every move, check in this order: 1) can I make five? 2) does my opponent have a four to block? 3) can I make an open four? 4) does my opponent have an open three? Our Normal computer thinks in exactly this order.
  • Build forks. A four-three (one stone creating a four and an open three) or a double three wins: blocking one threat leaves the other.
  • Use fours to gain tempo. If your opponent has an open three and you can make a four, do it — they must block your four first, giving you an extra move.
  • Where to block an open three. Block a solid three at one of its ends; block a split three in the gap, which breaks both sides.
  • Stay near the centre. Central stones can grow in all eight directions; edge stones can’t. Black has the first-move advantage, so as White focus on defence early.

How strong is the computer?

We played 40 games between our Normal and Easy levels with a fixed random seed, swapping colours each game. Normal won 40 — 20 as Black and 20 as White — and games lasted 19 moves on average. Easy only looks at rough shapes and sometimes misses a four, which suits beginners and kids; Normal always blocks fours and open threes, so beating it takes a four-three or double-three fork.

More two-player games

Want another game for two on one device? Try dots and boxes, or the three-lane duel Block Battle, which also supports invite links. For solo puzzles, play peg solitaire or the Tower of Hanoi. Chinese speakers can use the 五子棋 page, which shares the same saved game.

FAQ

How do I play gomoku with 2 players on one device?

Choose “2 players” and take turns on the same phone, tablet or computer. The highlighted name shows who is to move. On touch screens each stone needs a preview tap and a confirm tap, so handing the phone over won’t cause accidental moves.

Can I play gomoku against the computer?

Yes. Choose “vs CPU”, then Easy or Normal, and whether you play Black (first) or White. Normal always completes a five, blocks every four and open three, and builds open fours and four-three forks. In 40 test games against our Easy level, alternating colours, Normal won 40.

Which gomoku rules are used?

Freestyle gomoku: no forbidden moves for either side, and six or more in a row also wins. Renju, the tournament variant, adds restrictions for Black (no double-three, double-four or overline) — those are not used here.

What are an open three, a four and an open four?

An open three is three in a row with both ends free, one move away from an open four. A four (or closed four) has exactly one point that makes five, so it must be blocked at once. An open four has two such points — your opponent can only block one, so it wins.

Can I play online against a friend somewhere else?

Not yet — gomoku here is same-device 2 player or vs the computer. For an invite-link game with a remote friend, try Block Battle.

Is my game saved?

Yes. The current position, mode and level are saved in this browser so a reload doesn’t lose your game. No sign-up, nothing uploaded.