PUZZLTHINK

DEV NOTE

Blind Gomoku

Blind Gomoku AI dev notes

The same reading at every level — only the memory changes.

Blind Gomoku is gomoku with stones that show only a colour on top and hide black or white underneath, so you cannot see whose stone is whose. You play black and move first; each turn you choose an outer colour and the AI plays the same colour you just used. Twice per game you may flip the board for 5 seconds to see black and white.

For a computer the hard part is not reading — a computer never forgets who played where. So the levels were built on how many moves the AI remembers. This note is about those memory AIs, and the Very Hard AI that remembers everything.

Play now

Published · 2026-11-26

Difficulty = memory

Blind Gomoku launched on the morning of 17 November. Easy to Hard all compute the same thing: every empty cell within two of an existing stone is a candidate, scored by the line shapes in four directions — five 1,000,000, open four 80,000, closed four 20,000, open three 8,000, closed three 1,400, open two 420, and so on. Attack score if I play here × 1.08 + defence score if the opponent played here, plus a centre bonus and a little noise; the highest cell is played.

The one difference: line shapes are read from the stones of the last few moves only. Stones outside that memory vanish from the calculation — not mine, not theirs, not even blockers. It still never plays on an occupied cell. It acts like someone who can see there is a stone but has forgotten whose it is.

LevelAt launch (11/17)11/20Now (from 11/26)
Easylast 5 moveslast 3last 3
Normallast 15last 8last 8
Hardalllast 24last 36
Very Hard——all + threat search

Two adjustments

At first Hard remembered the whole game. The records on 20 November showed people winning 22% against Normal and 8% against Hard, far below the 50% and 25% targets, so memory went from 5 / 15 / all down to 3 / 8 / 24 moves.

On 26 November it went the other way. As the code comment records, people won 41% against a 24-move Hard — and 58% once they had played a few games. The trick spread fast: play on until it forgets. In a long game the early stones slide out of its memory. Hard now remembers 36 moves, most of a game.

Very Hard: the player who remembers everything

The hell-mode AI added on 24 November.

The first decision for Very Hard was what the AI is allowed to know. Reading the hidden face of a stone would be cheating, so the engine receives only where each stone went and in what order. Black moves first, so odd-numbered stones are black and even ones white — exactly what someone who watched the whole game and remembered the order would know. In the words of the code comment, the hidden face hides nothing from someone who remembers the order.

  1. STEP 01

    Five / block

    If it can make five now, it does; if the opponent can next move, it blocks.

  2. STEP 02

    VCF (up to 25% of the time)

    Victory by continuous fours: every move is a four, so the opponent must block, until an open four or double four wins. Read up to 24 plies deep.

  3. STEP 03

    VCT (up to 45%)

    Victory by continuous threats, using open threes as well as fours, checking every defence (cells that stop the three, and counter-fours), four levels deep.

  4. STEP 04

    Safe candidates only

    With no forced win, it takes 18 candidates and drops any move that gives the opponent a VCF.

  5. STEP 05

    Alpha-beta (up to 92%)

    The remaining candidates go into iterative-deepening alpha-beta with a transposition table. When the opponent threatens an open four or double four, only blocks and counter-fours are considered.

Finally it picks at random among the top three moves close to the best (within 40 points or 4% of the best score); in a decided position it plays the best move. Its first move is not searched: one of the cells right next to your first stone (straight or diagonal).

Real win rates

Signed-in players’ games against the AI as of 2026-11-26, 14:00 KST.

LevelHuman win rateGames
Easy66.7%18
Normal52.3%237
Hard39.9%301
Very Hard23.1%156

Normal is close to its 50% target. Hard’s 39.9% comes mostly from the 24-move period. Four players hold the Very Hard certificate. In all (signed in or not) the game had been played 2,310 times, 1,748 against the AI.

Gaps a human can use

Easy–Hard

Build lines from forgotten stones

The AI does not see your stones outside its memory as yours. Add new stones to two or three old ones and it sees a lone stone, not a line, and does not block. Easy forgets after 3 moves, Normal after 8, Hard after 36.

Easy–Hard

Forgotten stones are not walls either

Its own forgotten stones vanish too, so it may take a blocked line for an open one and spend moves attacking it.

Very Hard

An opponent who knows the order

There is no blindness for this AI — play it as an ordinary gomoku AI. It finds almost every VCF, so slow pressure with overlapping threes has a better chance than chains of fours. VCT is read four levels deep; longer pressure is left to the alpha-beta evaluation.

All

Two flips

You may flip the board twice per game for 5 seconds. Save them for the middle game, when memory blurs, right before a big decision.

Where this comes from

This note is written only from the code, the commit history and the aggregate numbers below.

  • `src/lib/blindGomoku.ts` — DIFFICULTY_MEMORY, linePotential, candidateScore, chooseAiMove
  • `src/lib/blindGomokuHell.ts`, `src/lib/blindGomokuHell.worker.ts` — Very Hard (VCF, VCT, alpha-beta, random pick)
  • `scripts/blind-gomoku-arena.ts` — self-play
  • `src/messages/ko.json` BlindGomoku — rule text (two flips, two-colour lock), read only
  • Commits b1cc658 (11/17 Blind Gomoku), 599e8a3 (11/17 colour rule), 1fe2d84 (11/20 memory 3/8/24; Normal 22%, Hard 8%), 44f49a9 (11/24 Very Hard, self-play), 0d9a9c9 (11/24 Very Hard locked to 2 colours), e227318 (11/26 Hard 36 moves)
  • DB aggregates (2026-11-26 14:22 KST): game_results (game = blind_gomoku, mode = ai) win rate by level, hell_clears count, game_plays_daily totals

Read next

  • How the Wallgo AI plays

    From a reach-first territory estimate to alpha-beta with a transposition table: what each Wallgo AI level computes, and where it is weak.

  • 12 Janggi AI dev notes

    Why a 7-ply Hard was almost unbeatable and went down to 5, the no-third-repetition ban, and a Very Hard that reads 13–19 plies.

  • Russian Janggi AI dev notes

    Even the Very Hard engine that reads to the end must lose to a first-move large cup in the centre — and how that shaped the AI and its win rate.

All dev notes →