Gomoku

0
Score
0
Moves
0
Best
Learner
Rating

How to Play

Place black stones, build five in a row, and block the white AI before it completes its own line.

W05 board-family prototype: Gomoku proves turn scheduling, heuristic AI, board input, scoring, persistent best, ratings, debug autoplay, and text-state output before nine rule-distinct classics branch from the engine.

Game Guide

Overview

Gomoku is the first playable member of the W05 board-classics batch. You place black stones on a fifteen-by-fifteen intersection board while a lightweight heuristic opponent answers with white. The rule is direct—connect five horizontally, vertically, or diagonally—but each move changes several crossing lines at once. A useful move can extend your attack, interrupt the opponent, and preserve space for a second threat. The prototype starts immediately, avoids menus, and keeps the position readable on phones as well as desktop screens.

Controls

Click or tap any empty intersection to place a stone. Keyboard players move the turquoise cursor with the arrow keys and confirm with Space or Enter. The four mobile buttons move the cursor without covering the center of the board; after positioning it, tap the highlighted intersection itself to place. The reset button begins a fresh match at once. Input is locked briefly while white chooses a response, so repeated taps cannot accidentally spend the next turn.

Scoring and Progress

Every black move earns a small survival score, with extra value when the new stone lengthens one of your horizontal, vertical, or diagonal lines. Completing five awards the largest bonus and immediately sets the final rating. Best is stored only in this browser through localStorage, so no account or network request is needed. A loss keeps the points earned during the position, which makes the score useful for comparing how long you sustained constructive threats rather than recording wins alone.

Strategy Tips

Read four directions before every move. If white has four stones with an open winning point, block it before continuing an ordinary attack. Then seek a move that creates two continuations, such as a horizontal three crossing a diagonal three. The AI can answer one urgent point but struggles when one stone creates two credible lines. Avoid building only against an edge because fewer open ends make that chain easier to contain.

Mobile Play

On a phone, use the last-move dot and turquoise cursor as anchors instead of recounting the whole board. Scan around the newest white stone, then widen the search if no threat appears. Tap the center of an intersection and wait for white to answer before touching again. Deliberate single taps prevent occupied-point warnings and make diagonals easier to verify.

Play Details

Game Snapshot

Difficulty
Read four directions before every move
Round length
Every black move earns a small survival score, with extra value when the new stone lengthens one of your horizontal, vertical, or
Input style
Click or tap any empty intersection to place a stone
Best fit
On a phone, use the last-move dot and turquoise cursor as anchors instead of recounting the whole board

Common mistakes

Quick FAQ

How do I improve?

Read four directions before every move.

Does it work on phones?

On a phone, use the last-move dot and turquoise cursor as anchors instead of recounting the whole board.

Why replay it?

Gomoku: Every black move earns a small survival score, with extra value when the new stone lengthens one of your horizontal, vertical, or diagonal

More games like this

Gomoku vs AI

Place black stones, build five in a row, and block the white AI before it completes its own line.

How to Play