Skip to content

About

Chess engine in under 4 KB of Python (make.fun tiny-chess-01 entry)

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

make.fun · tiny-chess-01 rank reward

tiny-chess

A chess engine in under 4 KB of Python, built for make.fun's tiny-chess-01. It plays the gauntlet through the env at MAKEFUN_ENV_URL.

  • 0x88 board, alpha-beta negamax with quiescence (captures and promotions)
  • Move ordering by MVV-LVA, iterative deepening to a fixed node budget
  • Material plus centralisation and pawn-push evaluation, bishop-pair bonus
  • Deterministic: fixed node budget, never a clock, no unseeded randomness
  • Finds forced mates and hangs no pieces: quiescence covers every capture and promotion, and every reply to a check, so the horizon never hides a tactic

main.py is the entrypoint, packed from the readable engine.py with the kit's makefun compress (LZMA), so it fits the 4,096-byte cap. Python 3.13, standard library only.

About

Chess engine in under 4 KB of Python (make.fun tiny-chess-01 entry)

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages