Play Gomoku Against RAPFI, the Gomocup-Winning AI
A PlayGonu guide
Most Gomoku AIs you meet online are built to be beaten. RAPFI is built to win. It is the engine that took the Freestyle and Renju leagues at the Gomocup, the long-running computer Gomoku tournament, in every year from 2022 to 2026 — and now you can sit down and play it on PlayGonu, free, in your browser.
What is RAPFI?
RAPFI is an open-source Gomoku engine. It searches deeply, evaluates positions with a neural network, and plays tactics — forcing sequences of fours and threes — that most human players never see coming. The Gomocup pits engines from around the world against each other in separate leagues, and RAPFI has topped both the Freestyle league (any five in a row wins) and the Renju league (the tournament ruleset with forbidden moves for Black) every year from 2022 through 2026.
How to play it on PlayGonu
- Open the Gomoku page and choose to play against the AI.
- Pick the Champion difficulty — that is RAPFI. The levels below it (Easy, Normal, Hard, Master and Pro) are PlayGonu's own AIs.
- Choose your rules: Freestyle or Renju. RAPFI plays both.
- You play Black and move first. The champion answers as White, thinking for about five seconds per move.
Tips for your first game against it
- Start with Freestyle. Black's first-move advantage is large there, so it is the fairest place to test yourself against a top engine as the player who moves first.
- Defend before you attack. RAPFI punishes an unanswered open three immediately. Block first, then look for your own chance.
- Try Renju next. With Black's forbidden moves in force, the game is tighter and every tempo counts — the same ruleset used in serious tournament play. Our Gomoku vs. Renju guide covers the details.
- Not ready yet? Warm up on Easy or Normal, then work your way up through Hard, Master and Pro before taking on the champion.
Play it now
No account and no install — pick Champion and make your first move. You can also play a friend on the same screen, or online against another person.