The result

RapfiWon-drawn-lostScore
All games, 3 s each113‑61‑2572%
With Black63‑24‑1276%
With White50‑37‑1369%

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.

10 to 19 moves: 1 games1020 to 29 moves: 24 games30 to 39 moves: 31 games40 to 49 moves: 21 games50 to 59 moves: 18 games5060 to 69 moves: 14 games70 to 79 moves: 8 games80 to 89 moves: 5 games90 to 99 moves: 4 games100 to 109 moves: 3 games100110 to 119 moves: 5 games120 to 129 moves: 2 games130 to 139 moves: 1 games140 to 149 moves: 0 games150 to 159 moves: 1 games150Draws: 61 games, 220 moves eachdraws61median 44.5 movesmoves after the opening
Games by moves played after the opening, in bins of 10. The grey bar is the 61 draws.

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.

0%25%50%75%100%20406080Rapfi won, 8 to 11 stones: 65% over 113 gamesRapfi won, 12 to 15 stones: 72% over 113 gamesRapfi won, 16 to 19 stones: 78% over 113 gamesRapfi won, 20 to 23 stones: 83% over 113 gamesRapfi won, 24 to 27 stones: 87% over 108 gamesRapfi won, 28 to 31 stones: 88% over 99 gamesRapfi won, 32 to 35 stones: 88% over 88 gamesRapfi won, 36 to 39 stones: 89% over 74 gamesRapfi won, 40 to 43 stones: 89% over 62 gamesRapfi won, 44 to 47 stones: 89% over 55 gamesRapfi won, 48 to 51 stones: 89% over 46 gamesRapfi won, 52 to 55 stones: 89% over 40 gamesRapfi won, 56 to 59 stones: 90% over 34 gamesRapfi won, 60 to 63 stones: 90% over 31 gamesRapfi won, 64 to 67 stones: 89% over 23 gamesRapfi won, 68 to 71 stones: 88% over 19 gamesRapfi won, 72 to 75 stones: 83% over 14 gamesRapfi won, 76 to 79 stones: 80% over 11 gamesRapfi won, 80 to 83 stones: 78% over 10 gamesRapfi wondrawn, 8 to 11 stones: 49% over 61 gamesdrawn, 12 to 15 stones: 50% over 61 gamesdrawn, 16 to 19 stones: 51% over 61 gamesdrawn, 20 to 23 stones: 52% over 61 gamesdrawn, 24 to 27 stones: 52% over 61 gamesdrawn, 28 to 31 stones: 54% over 61 gamesdrawn, 32 to 35 stones: 55% over 61 gamesdrawn, 36 to 39 stones: 55% over 61 gamesdrawn, 40 to 43 stones: 56% over 61 gamesdrawn, 44 to 47 stones: 57% over 61 gamesdrawn, 48 to 51 stones: 58% over 61 gamesdrawn, 52 to 55 stones: 59% over 61 gamesdrawn, 56 to 59 stones: 59% over 61 gamesdrawn, 60 to 63 stones: 61% over 61 gamesdrawn, 64 to 67 stones: 61% over 61 gamesdrawn, 68 to 71 stones: 61% over 61 gamesdrawn, 72 to 75 stones: 60% over 61 gamesdrawn, 76 to 79 stones: 59% over 61 gamesdrawn, 80 to 83 stones: 57% over 61 gamesdrawnRapfi lost, 8 to 11 stones: 42% over 25 gamesRapfi lost, 12 to 15 stones: 37% over 25 gamesRapfi lost, 16 to 19 stones: 34% over 25 gamesRapfi lost, 20 to 23 stones: 29% over 25 gamesRapfi lost, 24 to 27 stones: 26% over 25 gamesRapfi lost, 28 to 31 stones: 25% over 25 gamesRapfi lost, 32 to 35 stones: 23% over 25 gamesRapfi lost, 36 to 39 stones: 22% over 25 gamesRapfi lost, 40 to 43 stones: 22% over 24 gamesRapfi lost, 44 to 47 stones: 19% over 23 gamesRapfi lost, 48 to 51 stones: 18% over 22 gamesRapfi lost, 52 to 55 stones: 18% over 21 gamesRapfi lost, 56 to 59 stones: 18% over 19 gamesRapfi lost, 60 to 63 stones: 15% over 18 gamesRapfi lost, 64 to 67 stones: 14% over 17 gamesRapfi lost, 68 to 71 stones: 13% over 16 gamesRapfi lost, 72 to 75 stones: 12% over 15 gamesRapfi lost, 76 to 79 stones: 10% over 15 gamesRapfi lost, 80 to 83 stones: 8% over 15 gamesRapfi loststones on the board, the five dealt included
Rapfi's mean win chance by stones on the board, in bins of 4, one line per result.

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 moveRapfi lostKataGomo lost
Found22 of 2519 of 20
Median move3210
In the first 15 moves611
Loser's win chance before it, median16%45%
From 30% or more to lost513
Moves left after it, median4427
Moves are counted after the opening. Win chances are the deeper search's.

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.

Play RapfiSee the champions