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.
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
| Version | Solved? | Result With Perfect Play | Who And When |
|---|---|---|---|
| Freestyle gomoku, 15 x 15 | Yes | First player wins | Victor Allis, 1994 |
| Standard gomoku (exactly five), 15 x 15 | Yes | First player wins | Victor Allis, 1994 |
| Renju with no opening rules, 15 x 15 | Yes | First player wins | János Wágner and István Virág, 2001 |
| Gomoku with the Swap2 opening | No | Unknown | Still open |
| Renju with tournament opening rules | No | Unknown | Still 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.

Other Solved Games
| Game | Result With Perfect Play |
|---|---|
| Tic tac toe | Draw |
| Connect Four | First player wins (solved in 1988) |
| Gomoku, 15 x 15 | First player wins (solved in 1994) |
| Checkers | Draw (solved in 2007) |
| Chess and Go | Not 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
- Going first is an advantage. Take turns going first with friends. In HannahMoku the first player switches every game in rematches and Best Of 3 or 5 series, and ranked Quick Match uses a coin toss.
- Forcing moves win games. The proof is built on fours and threes, and so are real wins. Practice them with our gomoku puzzles.
- Exactly Five does not change the result. Turning off longer lines makes attacks a little harder, but the first player still wins with perfect play.


