Gomoku Game

Play Gomoku (Five in a Row) online against the computer. Free board game.
Gomoku Board
Black to move
Match
You0
Computer0
Draws0
Moves0 moves
No moves yet. Black goes first.
How to play

Players take turns placing stones on the 15×15 board. The first player to line up five stones in a row - horizontally, vertically or diagonally - wins.

Against the computer, choose your color and difficulty. You can undo your last move any time, or restart the game. Your score is saved in this browser.

Shortcuts:U undo · R restart

The game runs fully in your browser - no data leaves your device.
Tool Introduction

Gomoku, also known as Five in a Row or Gobang, is a classic abstract strategy game from East Asia. Challenge the built-in computer at three difficulty levels, or play a hot-seat match against a friend on the same device.

The computer evaluates every candidate move by scoring attack and defense lines, blocks your threats and hunts for its own winning lines - Hard mode is genuinely tricky to beat.