AbraCalc

Five-in-a-Row — Gomoku Strategy Game

Place stones on a 15x15 grid. First to get 5 in a row wins. Play against a heuristic AI.

Your turn (black). Click a cell to place a stone.
Embed this tool on your site

How to play

  1. Click any empty cell on the 15×15 board to place your black stone.
  2. The AI immediately responds by placing a white stone.
  3. First player to place 5 stones in an unbroken row (horizontal, vertical, or diagonal) wins.
  4. Block the AI's threats while building your own sequences.
  5. Click 'New Game' to start a fresh board at any time.

Place black stones on a 15×15 board. The first player to form an unbroken line of exactly 5 stones (horizontally, vertically, or diagonally) wins. The computer plays white with a heuristic AI.

Frequently asked questions

What is five-in-a-row?
Also known as Gomoku, it is a classic abstract strategy game where two players alternate placing stones and the first to align 5 in an unbroken row wins.
Does the AI look ahead?
The AI scores every candidate cell using a fast heuristic (threats of 4, 3, 2) without deep minimax, so it is beatable with good play.