Benchmark frontier LLMs against a search-powered Gomoku engine.
Project description
GomokuBench
GomokuBench is a search-vs-LLM benchmark for AI companies, model builders, and researchers who want a clean, reproducible way to test whether a general-purpose model can outplay a classic board-game engine.
Until 2026.4.26, no LLM in this benchmark has beaten the AI powered by search algorithm. If you find one, please share it with us.
Built for rapid model plugging, head-to-head benchmarking, and plain-language inspection of every move. Author: Homer Quan. GitHub: homerquan/GomokuBench.
Requirements
- Python 3
numpy
Install
pip install gomokubench
Or install from source:
pip install .
Play
gomoku play
Optional flags:
--player black|white--ai-first
The CLI always uses a 19x19 board and AI search depth 2.
Moves use x,y with 1-based coordinates, for example 10,10.
Benchmark
Run an LLM against the built-in alpha-beta AI:
gomoku benchmark --model nemotron-3-super -r 10
To watch the rounds play out in the console while benchmarking:
gomoku benchmark --model nemotron-3-super -r 10 -v
What this does:
- Loads the model config from
models/nemotron-3-super.json - Runs 10 rounds total
- Uses balanced starts: 5 rounds with the AI moving first and 5 rounds with the LLM moving first
- Always uses a
19x19board - Always uses AI search depth
2 -vprints each round, move, and board state in the console- Saves the benchmark report to
benchmarks/nemotron-3-super.json
The benchmark report is saved as JSON and includes the summary plus per-game move logs and final boards.
Adding Models
This repo now includes a few example model configs in the models/ folder.
You can add another model by creating a new JSON config that uses an OpenAI-compatible chat completions API format.
In general:
- add a new config file under
models/ - point it at an OpenAI-compatible
baseURL - set the remote
modelname - add any required API key env var to
.env
Examples in this repo include Ollama-compatible, Hugging Face Router, and OpenRouter model configs.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file gomokubench-0.1.0.tar.gz.
File metadata
- Download URL: gomokubench-0.1.0.tar.gz
- Upload date:
- Size: 19.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e23e1db63bd9a6cdc269788840a6558218c7fce48020308576ff9a0c636dce0c
|
|
| MD5 |
c7fb3038408741cc20f496c77a7500ae
|
|
| BLAKE2b-256 |
f20202b0252ab4567fd9fa892b2dd8dd4c6e71cb96bb64d6eecc37c5e7756cc4
|
File details
Details for the file gomokubench-0.1.0-py3-none-any.whl.
File metadata
- Download URL: gomokubench-0.1.0-py3-none-any.whl
- Upload date:
- Size: 24.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
032edfbc7f6d51b76757cb62f6549a43bfc3066bf5ca2d846f73b03cec0912d5
|
|
| MD5 |
6c50a011fd3e0edcbd4d3a1dee4e08fc
|
|
| BLAKE2b-256 |
f2020f95f00221144931f61827114952d1d8a65675b8d97b3570315e44426bbd
|