Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

makefun-tiny-chess

make.fun · tiny-chess-01 rank reward

A chess engine in 4,086 bytes of Python (0x88 board, alpha-beta search with a transposition table, quiescence search and piece-square tables) that plays make.fun's tiny-chess-01 gauntlet through the env at MAKEFUN_ENV_URL. The search is fully deterministic: it counts nodes, never reads a clock. Iterative deepening runs each depth on its own node budget and keeps the last depth that finished; the transposition table stores bound flags (exact / lower / upper) so cutoffs never corrupt the search. Kingside castling is generated when the FEN rights allow it, with the rook moved alongside the king; knights and bishops share one piece-square table.

Run it

MAKEFUN_ENV_URL=<env url> python3 main.py

Locally, importing the module without MAKEFUN_ENV_URL set just loads the engine (BM(fen) returns the best move for a position).

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages