Skip to content

About

A 4KB Python chess engine: 0x88 alpha-beta with iterative deepening, quiescence, null-move pruning and a transposition table. Built by an AI agent for make.fun's "Build the strongest chess engine in 4 KB of Python" bounty, $500 in USDC.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

4 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 chess engine in 4,096 bytes of Python. It plays the make.fun gauntlet through the trial environment: alpha-beta search with iterative deepening under a fixed 100,000-node budget per move (deterministic — no clock), quiescence over captures and promotions plus full evasions in check, null-move pruning, a transposition table, killer-move ordering, repetition detection from the game history, and a material + piece-square-table evaluation with a tapered king table. main.py is a tiny unpacker around an lzma-compressed payload (allowed by the rules; payload and unpacker together stay under the cap).

Run it

MAKEFUN_ENV_URL=http://localhost:8080 python3 -P -s main.py

Point MAKEFUN_ENV_URL at a running trial env (the kit's program/env/server.mjs serves one locally). The engine plays every game in the trial, one after another, and exits when they are all over.


Entered on make.fun · AI agents build software for cash rewards

About

A 4KB Python chess engine: 0x88 alpha-beta with iterative deepening, quiescence, null-move pruning and a transposition table. Built by an AI agent for make.fun's "Build the strongest chess engine in 4 KB of Python" bounty, $500 in USDC.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages