BoardGameBench
BoardGameBench is a GomokuBench-style benchmark for testing LLM move quality across a curriculum of compact deterministic board games. It is an extension of GomokuBench, generalizing the same search-vs-LLM idea from one game to a multi-game score.
Instead of scoring a model on one game, BoardGameBench runs the same model through several games and reports a normalized aggregate score:
- fast win = up to 1 point
- slower win = at least 0.75 points
- draw = 0.5 points
- loss = up to 0.35 points based on how long the LLM survives
- illegal-move forfeit = 0 points
Each game has its own move horizon, so survival and speed are scored relative to that game's expected length. This means an LLM still earns credit for making a losing game last longer, while a winning LLM is rewarded for closing the game quickly.
The current default curriculum follows the first strong multi-game set:
- Connect Four
- Gomoku 19x19
- Breakthrough 6x6
- Dots and Boxes 3x3
- Othello 6x6
- Othello 8x8
- Hex 7x7
Each game has exact legal move generation, terminal-state detection, deterministic state updates, and a built-in alpha-beta style search opponent with game-specific evaluation. The engine is intentionally simple and auditable, so every result can be replayed from the saved JSON.
Benchmark Results
Current 10-round-per-game Ollama results:
| Model | Games | Wins | Losses | Draws | Forfeits | Raw Score | Normalized | BRI |
|---|---|---|---|---|---|---|---|---|
| Nemotron 3 33B (Ollama) | 70 | 2 | 68 | 0 | 38 | 4.91/70 | 7.02 | 118.0 |
| Nemotron 3 Super (Ollama) | 70 | 0 | 70 | 0 | 36 | 3.02/70 | 4.31 | 97.3 |
| Gemma 4 8B (Ollama) | 70 | 0 | 70 | 0 | 60 | 0.71/70 | 1.01 | 71.2 |
Quick Start
From this folder:
pip install .
boardgamebench list-games
boardgamebench play --game connect_four
boardgamebench benchmark --model-file ./models/example-openai-compatible.json -r 2
boardgamebench report
After installation:
pip install .
boardgamebench benchmark --model my-model -r 4
Model Configs
Model configs use the same OpenAI-compatible shape as GomokuBench:
{
"provider": {
"openrouter": {
"name": "OpenRouter",
"options": {
"baseURL": "https://openrouter.ai/api/v1",
"apiKeyEnv": "OPENROUTER_API_KEY"
},
"models": {
"my-model": {
"name": "My Model",
"model": "provider/model-id",
"rate_limit_rpm": 30,
"timeout_seconds": 120
}
}
}
}
}
Put configs in models/<name>.json and run:
boardgamebench benchmark --model <name>
or pass a file directly:
boardgamebench benchmark --model-file /path/to/model.json
Choosing Games
Run the default curriculum:
boardgamebench benchmark --model my-model
By default, this runs 10 rounds per game. Use -r or --rounds to choose a different number:
boardgamebench benchmark --model my-model -r 20
Run a subset:
boardgamebench benchmark --model my-model --games connect_four,breakthrough_6x6,othello_6x6 -r 4
Available game ids:
connect_fourgomoku_19x19breakthrough_6x6dots_and_boxes_3x3othello_6x6othello_8x8hex_7x7
See GAMES.md for the implemented curriculum and the planned stronger-oracle roadmap for the larger game list.
Outputs
Reports are saved in benchmarks/<model>.json and include:
- model and provider metadata
- aggregate score and per-game scores
- per-round speed/survival scoring details
- every move by the LLM and engine
- raw LLM responses
- final board states
- a reasoning/API log path under
/tmp/boardgamebench
To print a leaderboard table from saved benchmark files:
boardgamebench report
Notes
This repo is a benchmark harness, not a claim that the bundled engines are perfect solvers for every game. The design keeps the oracle interface pluggable so stronger sources can be dropped in later, such as Pascal Pons for Connect Four, Edax for Othello, MoHex/Benzene for Hex, or retrograde/proof databases for solved small variants.
Release files for boardgamebench 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| boardgamebench-0.1.2.tar.gz | 22.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| boardgamebench-0.1.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 49.9 kB
Release files / boardgamebench-0.1.2.tar.gz
| Download URL | boardgamebench-0.1.2.tar.gz |
|---|---|
| Size | 22.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d3fa3c66c8635641066dd125cb3a7ac48fbb448bb6e2e59f3b0e2961ea1d5353
|
|
BLAKE2b-256 checksum How to use checksums |
5830abfffd86da34d672b481da36b6507158c56ab9d1ab0c09684a232c619bd4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.14
|
Release files / boardgamebench-0.1.2-py3-none-any.whl
| Download URL | boardgamebench-0.1.2-py3-none-any.whl |
|---|---|
| Size | 27.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4eed48f821d71edaa1e7cf2831c0fff65716fd4a154309300d4c88b91e785e81
|
|
BLAKE2b-256 checksum How to use checksums |
70648c27655f3770127ededb6de8d282a58f2dbd71ffa5f1771ce6c2bf20ade9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.14
|