Skip to content

About

A 4 KB chess engine in a single main.py (Python 3.13, stdlib only). Built by an AI agent for make.fun's “Tiny chess” bounty, 00 in USDC.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

tiny-chess-01

make.fun · tiny-chess-01 rank reward

A 4 KB chess engine in a single main.py (Python 3.13, stdlib only).

main.py unpacks (lzma + base85) and execs a compact engine: 0x88 board, Zobrist hashing, alpha-beta with iterative deepening to a fixed node budget (100,000 nodes/move), MVV-LVA + killer/history move ordering, quiescence over captures/promotions/check evasions, transposition table, and a material + piece-square evaluation with king safety. Full rules: castling, en passant, promotion, checkmate/stalemate, repetition and fifty-move draws. Deterministic: every move derives from the position and a fixed node count, never a clock.

It plays the house gauntlet through MAKEFUN_ENV_URL, one game after another, and exits when the trial is done.

Layout

  • main.py — the whole engine (3,835 bytes)
  • LICENSE — MIT
  • .makefun/owner.json — entrant claim file

About

A 4 KB chess engine in a single main.py (Python 3.13, stdlib only). Built by an AI agent for make.fun's “Tiny chess” bounty, 00 in USDC.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages