Gomoku

Line up 5 of your stones across, down or diagonally before the CPU does — and 6 in a row counts just as much. There are no forbidden moves to memorise, and Undo is unlimited and free: it takes back the CPU’s reply along with your stone.

Play in your browser About Simple Games

The board, and how you win

The board is a 15×15 grid of lines, which makes 225 intersections. Stones sit on the crossings rather than inside the squares, and the wood carries nothing but the grid lines and 5 star points.

You win the moment 5 or more of your stones stand in an unbroken line — across, down, or on either diagonal. More than 5 still wins. A run of 6 is a victory here, not a foul. If all 225 intersections fill and neither side has a line, the match is a draw.

These are freestyle rules. The renju restrictions on the opening player — three-three, four-four and the overline — are not implemented. They exist to trim the first player’s advantage in a game between two people; against a CPU that job belongs to the difficulty, so there is nothing forbidden to learn before you can play.

Tap once to aim, again to place

The first tap marks the intersection with a ghost of the stone you are about to play. A second tap on the same point commits it. Tapping a different point simply moves the mark there.

The reason is physical. On the narrowest screen this series supports — 320px wide — the intersections sit about 19px apart, and a single tap that committed immediately would be a machine for producing stones you never meant to play. It is the same two-step language as choosing a cell and then typing a number in Sudoku, and it is not a setting: if only one of the two is right, offering the choice would just be handing you the problem.

Black opens, so your colour decides who starts

Black always moves first. That is a rule of the game rather than a setting, and nobody can pass: every turn adds exactly one stone, so whose turn it is follows from the stones already on the board, and the game never has to remember it.

So choosing a colour is choosing whether you open, and the home screen says so in those words — Black · first and White · second. Black is the default. Take White and the CPU opens; on an empty board its first stone goes to the centre.

The help you get, and why there is no Hint

Undo is unlimited and free, and it works from the first launch. No game feature here is ever behind an ad or a purchase, and strength is not something you unlock — all 3 difficulties are selectable from the start.

One press takes the board back to your previous decision point, which means your stone and the CPU’s answer to it come off together. It never leaves you standing in the middle of the CPU’s turn, because that is not a position you ever decided anything from.

What Easy, Normal and Hard mean

The home screen calls this choosing your opponent. All 3 are there from the first launch and each keeps its own record, and the board, the rules and the help are identical at every setting. The only thing that changes is how the CPU chooses its stone.

DifficultyHow it picks a pointHow far it reads
EasyAt random among the empty points touching a stonenot at all
NormalScores every point near the stones and takes the best1 stone
HardAlpha–beta search that deepens while its budget lastsup to 6 stones

Hard is deliberately not the strongest opponent a computer can be. Freestyle Gomoku is known to be a theoretical win for the side that opens, so a CPU that read to the end would not be an opponent — it would be a wall. That result assumes perfect play, and a search stopped at 8,000 positions is nowhere near perfect: taking White is a handicap here, not a lost cause. The budget was chosen so a reply costs about what the CPU opponents already shipped in Simple Games cost, and there is no opening database behind it — the first stones are played by the same search as the last ones.

Tips

Questions people ask

Do I have to make exactly 5 in a row?

No. 5 or more wins, so a run of 6 is a victory rather than a foul. These are freestyle rules: the renju restrictions on three-three, four-four and overlines are not implemented, and there is nothing you can be penalised for building.

Who moves first, and can I play White?

Black always opens — that is the rule, not a setting. On the home screen you choose Black · first or White · second, and the choice applies to your next match. Taking White means the CPU opens, and on an empty board its first stone goes to the centre.

Why is there no Hint?

Because there is nothing hidden for a hint to uncover. The whole board is visible, so the only thing a hint could do is name the point the CPU would play — which is the CPU playing your side too. Undo is the help instead, and it is unlimited and free.

Is Undo limited, or do I have to watch an ad for it?

Neither. Undo is unlimited and free from the first launch, all 3 difficulties are selectable straight away, and no game feature is ever behind an ad or a purchase.

Can I leave in the middle of a match?

Yes. The position, your colour, the difficulty and your elapsed time are saved as you play, and the board comes back exactly as you left it. Only the undo history is not kept, so a resumed match starts from the position rather than from its move list.

Do I need an internet connection?

The Android app plays from the first launch with no connection: there is nothing to download, no account, and every match is decided on your device. The browser version needs to load the page once, and then the game itself runs in your browser.

Everything described here is implemented in the open: read the source code on GitHub.