Description
sameshi is a small chess engine that supports a constrained subset of the game, packed into a single header file of about 1.95 KB. The author describes it as minimal. It uses a 120-cell mailbox board, a negamax search with alpha-beta pruning, a material-only evaluation, and capture-first move ordering. Move generation does full legal move validation, including check, checkmate and stalemate. Castling, en passant, promotion, repetition and the 50-move rule are not implemented, as the README notes. The README reports a strength of about 1170 Elo, with a 95 percent confidence interval of 1110 to 1225, based on 240 games against Stockfish at levels between 1320 and 1600. Those games used a fixed depth of 5, the constrained rules, and a maximum of 60 plies. The repository includes a demo video and a readable version of the code alongside the compact header. It suits programmers who want to see how a chess engine works in very little code.…
Highlights
- Chess engine in a 2 KB header file
- Negamax search with alpha-beta pruning
- Full legal move validation
- About 1170 Elo in the author's tests
- Readable version of the code included
Ratings & Reviews
No ratings yet
Be the first to rate Sameshi.
People also visit
Stockfish.js
The strong open source chess engine Stockfish compiled to JavaScript
Sameshi FAQ
What is sameshi?
A minimal chess engine that supports a constrained subset of the game, packed into a header of about 1.95 KB.
What is left out?
The README lists castling, en passant, promotion, repetition and the 50-move rule as not implemented.
How strong is it?
The author reports about 1170 Elo, with a 95 percent confidence interval of 1110 to 1225, from 240 games against Stockfish.
How does the search work?
It uses negamax search with alpha-beta pruning, a material-only evaluation and capture-first move ordering.
Where is the source?
On GitHub at datavorous/sameshi.
What are the best Sameshi alternatives?
Popular alternatives to Sameshi include Wintrchess, Stockfish Mac and blunderchess.net. See all Sameshi alternatives
