A minimal chess engine implementation that achieves ~1170 Elo rating while fitting in under 2KB of code. Uses classic techniques like negamax search, alpha-beta pruning, and material evaluation. Supports core chess rules but omits castling, en passant, promotion, and draw conditions. Tested against Stockfish at various levels with fixed depth-5 search.

1m read time From github.com
Post cover image

Sort: