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.
How to play
- Click any empty cell on the 15×15 board to place your black stone.
- The AI immediately responds by placing a white stone.
- First player to place 5 stones in an unbroken row (horizontal, vertical, or diagonal) wins.
- Block the AI's threats while building your own sequences.
- 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.