sameshi
a ~1200 Elo chess engine that fits within 2KB
C★ 198⑂ 9 forksupdated 5 months ago
git clone https://github.com/datavorous/sameshi.gitdatavorous/sameshiREADME.mdfork it — it’s yours
sameshi
A minimal chess engine supporting a constrained subset of the game.
sameshi.h: 1.95 KB
The readable version of the code can be found here.
core
- 120 cell mailbox board
- negamax search
- alpha beta pruning
- material only eval
- capture first move ordering
- full legal move validation (check / mate / stalemate)
Note
not implemented: castling, en passant, promotion, repetition, 50-move rule.
strength
~1170 Elo (95% CI: 1110-1225)
240 games vs stockfish (1320-1600 levels)
fixed depth 5, constrained rules, max 60 plies.
more like this
cc65-Chess
Portable chess game in C. Commodore 64, Apple 2, Atari, Oric, Commander X16, curses terminal, etc.
C★ 50