HannahMoku

Is Gomoku Solved? What Computers Proved About Five In A Row

Gomoku has been solved by computers, but not in a way that ruins the game. Here is what was proved, what is still open, and what it means for your own games.

6 Min Read · Updated October 2026

Black moves first, and with perfect play that first move is enough to force a win.
Short answer: yes. In 1994 Victor Allis proved that the first player can always force a win in gomoku on a 15 x 15 board, in both freestyle and standard gomoku. Renju without opening rules was solved the same way in 2001. Gomoku with the modern tournament opening rule, Swap2, has not been solved.

What "Solved" Means

A game is solved when we know who wins with perfect play. Gomoku is weakly solved: computers found a winning strategy for the first player from the empty board. That does not mean every position has been worked out, and the strategy is far too large for any person to memorize.

Which Versions Of Gomoku Are Solved

VersionSolved?Result With Perfect PlayWho And When
Freestyle gomoku, 15 x 15YesFirst player winsVictor Allis, 1994
Standard gomoku (exactly five), 15 x 15YesFirst player winsVictor Allis, 1994
Renju with no opening rules, 15 x 15YesFirst player winsJános Wágner and István Virág, 2001
Gomoku with the Swap2 openingNoUnknownStill open
Renju with tournament opening rulesNoUnknownStill open

On boards larger than 15 x 15, experts believe the first player wins too, since there is even more room to build attacks.

How Computers Solved It

Allis did not check every possible game, which would be impossible. He used two search methods built around how gomoku is really won. Threat space search looks only at sequences of forcing moves, like fours and open threes, the same way a strong player does. Proof number search focuses the computer's effort on the lines that are closest to being proved. Together they found a forced win for the first player.

Why Tournaments Changed The Opening Rules

Strong players knew about the first move advantage long before the proof. At the 1989 and 1991 world championships, played under the Pro rule, the first player won about 67 percent of games. That is why tournament gomoku adopted the Swap2 opening in 2009: the first player places three stones, and the second player then chooses which side to play or adds more stones. With Swap2, the first player's win rate is estimated at around 52 percent.

Swap2 gomoku opening with three starting stones
Swap2 starts with three stones, two black and one white, placed by the first player.

Other Solved Games

GameResult With Perfect Play
Tic tac toeDraw
Connect FourFirst player wins (solved in 1988)
Gomoku, 15 x 15First player wins (solved in 1994)
CheckersDraw (solved in 2007)
Chess and GoNot solved

Can Computers Beat The Best Players?

Yes. Modern gomoku programs are far stronger than any human. In 2017 the program Yixin beat Rudolf Dupszki, the 2015 world champion, 2 to 0 in a match held at that year's world championship.

Is Gomoku Still Worth Playing?

Absolutely. Knowing that a winning strategy exists is very different from being able to find it over the board. Even at the top level, players lose won positions all the time, and in casual games the player who spots threats faster almost always wins. The same is true of checkers, which is solved and still played around the world.

What It Means For Your Games