Skip to main content

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 19x19 board
  • Always uses AI search depth 2
  • -v prints 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 model name
  • 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gomokubench-0.1.0.tar.gz (19.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gomokubench-0.1.0-py3-none-any.whl (24.7 kB view details)

Uploaded Python 3

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

Hashes for gomokubench-0.1.0.tar.gz
Algorithm Hash digest
SHA256 e23e1db63bd9a6cdc269788840a6558218c7fce48020308576ff9a0c636dce0c
MD5 c7fb3038408741cc20f496c77a7500ae
BLAKE2b-256 f20202b0252ab4567fd9fa892b2dd8dd4c6e71cb96bb64d6eecc37c5e7756cc4

See more details on using hashes here.

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

Hashes for gomokubench-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 032edfbc7f6d51b76757cb62f6549a43bfc3066bf5ca2d846f73b03cec0912d5
MD5 6c50a011fd3e0edcbd4d3a1dee4e08fc
BLAKE2b-256 f2020f95f00221144931f61827114952d1d8a65675b8d97b3570315e44426bbd

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page