thomasahle/sunfish
Sunfish: a Python Chess Engine in 111 lines of code observed · 2026-08-28
Health v2 · maintenance only
87/100
- Activity 99
- Release rhythm 65
- Longevity 100
Flags: no_license
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 4587
- days_rel: 22
- days_push: 7
- n_releases_24m: 1
Adoption not part of the score
3271 stars · 583 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
Sunfish is a simple but strong chess engine written in Python in roughly 111 lines of code, using MTD-bi search with piece-square table evaluation, plus a small NNUE variant. It speaks the UCI protocol so it can be played in a terminal, via GUIs like Arena or Cute Chess, or on Lichess.
Use cases
- play chess against an engine in the terminal
- hook a chess engine into a UCI GUI or tournament tool
- learn how a chess engine works by reading minimal code
- experiment with search algorithms and evaluation functions
- build a deep learning chess program on a simple base
- run engine matches with fastchess or cutechess-cli
When to choose
- you want a tiny, readable chess engine to study or modify
- you need a lightweight UCI engine for casual play or testing
- you want a platform for experimenting with chess AI research
When to avoid
- you need maximum playing strength comparable to Stockfish
- you need a production engine with extensive opening books and tablebase support
- you need a non-GPL-licensed engine
Facets
application · maturity active
game-engine cli machine-learning artificial-intelligence gaming-tools python cli cross-platform chess chess-engine uci nnue minimalist didactic game-development
3 sources
- readme: https://github.com/thomasahle/sunfish · fetched 2026-08-28 · bc0a786c7a89
- homepage: https://www.chessprogramming.org/Sunfish · fetched 2026-08-29 · e211b5059f49
- registry_pypi: https://pypi.org/pypi/sunfish/json · fetched 2026-08-29 · 18bfb9b6cbc6
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| thomasahle/sunfish | main | 87 |
For agents
markdown · JSON · MCP: product_card(name="thomasahle/sunfish")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem