Gomoku: Five in a Row vs the Computer

Play gomoku free online on a 15 × 15 board: get five in a row before the computer does. Three levels, undo and a win count. Free, with no sign-up.

Loading…

Gomoku is a simple game with surprising depth: take turns placing stones on a 15 × 15 grid, and the first to get five in a row across, down or diagonally wins. You play black and move first; the computer plays white. On Easy it misses threats, Medium blocks the obvious ones, and Hard looks for open fours and double threats and will punish a single careless move. The last stone played is ringed so you can follow the game, and Undo takes back your last move and the computer's reply. It runs in your browser with nothing to install and no account, on a computer, tablet or phone. Your wins and losses save in this browser.

Common use cases

  • Play a fast strategy game with no rules to learn
  • Get better at spotting open threes and fours
  • Play five in a row on a phone or tablet
  • Warm up for games of go or connect-four style games

How to use

  1. Choose Easy, Medium or Hard.
  2. Tap any point on the board to place a black stone.
  3. Block the computer's lines of three and four while building your own.
  4. Get five in a row in any direction to win. Use Undo to try a different move.

FAQ

How do you play gomoku?

Players take turns placing one of their stones on an empty point. The first player to make an unbroken line of five stones horizontally, vertically or diagonally wins.

Is gomoku the same as five in a row?

Yes. Gomoku is the Japanese name for the game, and it's also known as five in a row. This version counts a line of five or more as a win, which is the free-style rule most casual players use.

What is the best strategy in gomoku?

Make threats the other player must answer. An open four (four in a row with both ends empty) can't be stopped, and two open threes at once usually win too. Always check whether the computer has three in a row before you attack.

Does the first player have an advantage in gomoku?

Yes, a big one with free-style rules. That's why tournament play uses opening rules. Here you always move first, which makes the Hard level fairer.