⚫Gomoku (Five in a Row)

Play Gomoku against the AI on a 15×15 board — undo supported, first to five in a row wins

Wins
0
Losses
0
Draws
0

First to line up five stones in a row (or diagonal) wins! · You play black and move first. Tap an intersection to place a stone — five in a row in any direction wins.

How to Use

You play black and move first, alternating turns with the AI on a 15×15 board. The first side to line up five stones in any direction — horizontal, vertical, or diagonal — wins. Use Undo to take back the last full turn (your move and the AI reply). Your record (wins/losses/draws) is saved locally.

FAQ

What is the basic Gomoku strategy?

Always block an opponent's open three or four first — ignoring one loses on the spot. On offense, try to create double threats (two open threes, or a three plus a four) that cannot both be blocked.

Can I undo a move?

Yes. Undo removes both the AI's last stone and yours. It is disabled once the game has ended.

How strong is the AI?

The AI scores every candidate spot for both attack and defense — it blocks open threes and fours and builds its own threats. Great for practicing tactics, though it's not an unbeatable engine.

Is this a standard 15-line board?

Yes. The board is the standard 15×15, and five in a row in any direction — horizontal, vertical, or diagonal — wins, matching offline Gomoku rules.

Who goes first and which colors do we play?

You play black and always move first; the AI plays white. There's no need to guess for first move, and the Undo button takes back both your move and the AI's reply.

Can I review a finished game?

Undo is disabled once a game ends, so you can't step back through a finished match. To replay, start a new game and place stones in the same order to reproduce the position.