Gomoku (Omok)

Loading…

The classic board game: be the first to line up five stones in a row — horizontally, vertically, or diagonally — on a 15×15 board. Play against the AI or a friend.

Rules

  • Black moves first. Black and White take turns placing stones.
  • Make an unbroken line of five or more stones horizontally, vertically or diagonally to win. (Freestyle rules)
  • If the board fills up with no winner, the game is a draw.

Controls

  • Click (or tap) the board to place a stone.
  • Undo: in AI mode, it takes back both your move and the AI’s reply.
  • Pressing a mode button starts a new game in that mode.

About Gomoku

Gomoku means “five in a row” and needs nothing more than a Go board and stones, which is why it has been loved for centuries. In Korea it is called Omok (오목), and in Japan Gomokunarabe. Once players discovered that moving first gives Black a big advantage, the Renju rules were created to restrict Black, and international tournaments are still held today. This game uses freestyle rules: five or more in a row wins, with no restrictions.

Basic strategy

1. Know the shapes

  • Open three: three stones with both ends empty, like ·●●●·. If it isn’t blocked, it becomes an open four next turn.
  • Open four: four stones with both ends open, like ·●●●●·. Your opponent can only block one end, so it’s practically a win.
  • Closed four: four stones with one end blocked. Your opponent must block it, which lets you keep the initiative.

2. The secret to attacking: double threats

Creating two threats with a single move is the winning formula in Gomoku.

  • Four-three (4-3): one move that makes a closed four and an open three at the same time. While your opponent blocks the four, the three becomes an open four.
  • Three-three (3-3): one move that makes two open threes. Your opponent can only stop one.
  • Four-four (4-4): one move that makes two four-stone threats.

3. Defending

  • Always block your opponent’s open three right away. One move late and it becomes an unstoppable open four.
  • When blocking, choose a spot that cuts your opponent’s line and connects to your own stones — defense and attack in one move.
  • If you can make a closed four, play it before blocking an open three to buy yourself time.

4. Take the center

The closer you are to the edge, the less room your lines have to grow. Early on, play near the center and leave about one space between your stones to keep many directions open.

About the AI

On every turn, the AI calculates a score for every empty point and plays where attack score + defense score is highest. It never misses an immediate win or a move it must block, but it doesn’t look several moves ahead. Set up a double threat like a four-three or three-three and you can beat it!