The result
| Rapfi | Won-drawn-lost | Score |
|---|---|---|
| All games, 3 s each | 113‑61‑25 | 72% |
| With Black | 63‑24‑12 | 76% |
| With White | 50‑37‑13 | 69% |
That is about +165 Elo for Rapfi (95% range +124 to +210). Both engines had the same clock on one CPU thread, and used it differently: Rapfi took 2.4 of its 3 seconds on average and searched a median 450,000 positions a move, while KataGomo, on its Eigen (CPU) backend, searched a median 139 visits. A KataGomo visit runs a large neural network on one position; a Rapfi position costs far less.
The engine mattered far more than the colour: moving first was worth about 4 points of score, being Rapfi about 22.
The clock is what decides it. In an earlier match at matched search, Rapfi Level 8 at 80,000 positions a move against KataGomo at 250 visits, the two scored level: 65‑65‑70 over 200 games.
Game 1
Each game starts from one of the site's dealt openings, with stones already on the board. Rapfi screened all 197 in the pool at the time as close to even, though KataGomo put 34 of the 99 played outside 40-60% (more below). Each was played twice with colours swapped. In game 1 KataGomo had Black, and Rapfi won with its 15th move, b9, a diagonal five from b9 to f5. Under the board, both engines read every position of the game: the teal line is Rapfi's win chance for Black, the orange line KataGomo's.
Rapfi wins with Black
In game 52, Rapfi had Black and completed a five at b11, 41 moves after the deal. Follow the rising lines for Black, then step through Rapfi's attack toward the left edge.
Decisive games end in about 45 moves, and every draw fills the board
138 of the 199 games ended in a five, at a median of 44.5 moves after the opening. All 61 draws ran the full 220 moves: no game was drawn before the board filled.
Under these rules a full board is the only draw, and the engines have no way to agree one, so a drawn game is played out to the last point. In a typical draw the fight is over long before that. Rapfi last read either side as clearly ahead, above 62%, at a median move 66, and the other 154 or so moves fill the board without a five.
Game 2 is one of them. Both engines read it as somewhat better for White until move 65, then dead even to the end.
The games start to turn within 3 moves
Rapfi logged its win chance in every position it moved in. Each line below averages that over the games that ended one way: Rapfi won, drew or lost. A result settled late would show as three lines sitting together near 50% and parting only at the end.
The lines part at once. They read 65%, 49% and 42% 3 moves after the deal, and by stone 20 they read 83% in its eventual wins, 52% in the draws and 29% in its losses. In the games it won, Rapfi saw a forced five at a median stone 22.
KataGomo read the openings better than Rapfi did
Rapfi screened the openings, and it read them as even all match. KataGomo, reading each one at 400 visits, gave Black anywhere from 12% to 89%, and put 34 of the 99 outside 40-60%.
The results sided with KataGomo: in the 22 openings it gave Black over 60%, Black scored 60%; in the 12 it gave Black under 40%, Black scored 40%.
How the games were lost
Rapfi lost from even games. Its 25 losses were slides: in the 24 with logged readings, the best it ever gave itself was a median 53%, and only 2 went above 70%.
KataGomo saw its losses coming. In 30 of Rapfi's wins, it read the position one move before Rapfi saw a won game and gave itself a median 24%. With ten times its match search, 1,400 visits, it still gave itself 23%. By its own reading, no move saved those games by then.
Rapfi attacks more. 16.6% of its moves made a four, against 11.4% of KataGomo's, and it made 113 moves with two threats at once to KataGomo's 41.
Rapfi's losing moves came late, in positions already behind
To find where each loss turned, a deeper Rapfi search read back through Rapfi's moves from the end of each lost game, at 10 million positions a move, about 22 times its match search. The losing move is the last one after which it gives Rapfi a win chance of 10% or less. It found one in 22 of the 25 losses; in the other 3, Rapfi was lost as far back as it looked. It read a random 20 of Rapfi's wins the same way, to compare KataGomo's losing moves.
| The losing move | Rapfi lost | KataGomo lost |
|---|---|---|
| Found | 22 of 25 | 19 of 20 |
| Median move | 32 | 10 |
| In the first 15 moves | 6 | 11 |
| Loser's win chance before it, median | 16% | 45% |
| From 30% or more to lost | 5 | 13 |
| Moves left after it, median | 44 | 27 |
KataGomo's losses turned early, from near even, mostly in one move. Rapfi's finished a slide, and KataGomo won them slowly: after the losing move it played a median 12 moves that made no three or four before its five. In 9 of the 17 positions where the deeper search chose a different move from Rapfi, its move took a point where a KataGomo stone would have made a three or a four.
In game 106, Rapfi had Black, and KataGomo completed a five with White after 92 moves from the deal. Watch Black's chances ebb while KataGomo builds its position, well before the final five.
More search finds most of them. Given ten times its match search, 4.5 million positions, Rapfi plays the deeper search's move in 19 of the 22 positions, and in 16 the position after its move no longer reads as lost. Replayed at its match search, it plays the losing move again in 12. In 5 of the 22, the deeper search would have played Rapfi's move too.
What it means for the bot you play
Level 8 is the champion's engine with a smaller search: 80,000 positions a move, with a 3.5-second ceiling so a slow phone can reach it. The Rapfi that won the title searched about 6 times as much, so it is stronger than the bot you play.
How the match was run
- Freestyle Gomoku on a 15 by 15 board: five or more in a row wins, a full board is a draw.
- Openings dealt from the site's 197 screened positions, each played twice with colours swapped.
- One search thread per engine and a fresh engine process for every move, on an Apple silicon Mac. The site serves an x86-64 build of the same Rapfi commit.
- Rapfi with a 32 MB hash; KataGomo on its CPU backend.
- One game was voided when Rapfi took 3.3 seconds on one move, past the referee's limit. The other game of that opening counts in the totals and is left out of the Elo range, which pairs games by opening.
Thanks
Rapfi is open source under the GPL-3.0 licence at github.com/dhbloo/rapfi, and its networks are public domain (CC0). KataGomo is open source under the MIT licence at github.com/hzyhhzy/KataGomo; the network we ran is b10_freestyle15x from its Gomocup 2025 release. Thank you, dhbloo and the Rapfi contributors, and thank you, hzyhhzy.