- castling moves are stored as "king takes own rook" (from = king square, to = castling rook square) - per-colour castling rook squares (Board::castleRook), so DFRC (different back ranks for white/black) works - FEN parsing/printing: KQkq (X-FEN) and Shredder-FEN file letters - Board::CanCastle(): generic castling legality (empty paths, king not attacked, rook x-ray check) - MakeMove handles arbitrary king/rook start squares (king and rook may stay in place or swap through each other's squares) - UCI_Chess960 option: castling printed/parsed as king-takes-rook when on, standard e1g1 style otherwise (both are accepted when parsing) - viri format, perft castle check and castling right updates no longer assume a1/h1/a8/h8
Eleanor Chess Engine
| Version | Release Date | CCRL 40/15 | CCRL Blitz | CEGT 40/20 |
|---|---|---|---|---|
| 4.1 | 2026-04-22 | 3528 (#60-61) | 3590 (#64) | 3443 (#59) |
| 3.0 | 2025-12-05 | 3405 (#84) | 3495 (#79-80) | - |
| 2.0 | 2025-08-23 | 3312 (#115) | 3392 (#105) | - |
| 1.0 | 2025-06-02 | 2856 (#244) | 2759 (#256) | - |
Evaluation
Eleanor uses a fully neural network-based evaluation function, entirely trained on self-play data from an initially simple HCE using the bullet trainer.
Architecture: (768x8hm -> 1536)x2 -> 1x8
A 1536-hidden-layer perspective net with 8 input buckets, 8 output buckets and horizontal mirroring.
Installation
Prerequisites:
clang++compiler- On Windows,
clang++must have access to a MinGW GNU toolchain/runtime because the build targetsx86_64-w64-windows-gnu- Access to
makecommand
- Clone the repository
- Run
makein the root directory - Enjoy your executable 🎉
How to Use
You can interact with the engine via these commands:
-
position— Set the board state using a FEN:position fen [FEN]orposition startpos
-
ucinewgame— Resets the position and game state -
setoption name UCI_Chess960 value true— Enables Chess960 (FRC / DFRC) castling notation (king takes own rook, e.g.e1h1). Positions can be given asposition fen [FEN]with X-FEN or Shredder-FEN castling rights -
quit— Terminates the program -
go— Begins search and returns the best move- Parameters (all in milliseconds):
wtime,btime— Remaining time for white/blackwinc,binc— Increment time for white/black
- Parameters (all in milliseconds):
-
stop— Stops the current search -
bench— Runs a speed benchmark on a set of positions -
nnue [full]— Shows a detailed breakdown of the neural network evaluation for the current position (fulladds histograms, per-step math and top 8 neurons)
The engine can be used in any GUI with UCI support.
Sources I Used
- Stockfish Discord Community — The best possible source for an engine dev.
- Chess Programming Wiki — Contains some good articles. Used it mostly when started the project.
- Maksim Korzh's Chess Engine in C (YouTube Series) — it was a good series helping with some fundamental stuff early on.
The project is a work in progress and actively developed. Contributions are highly appreciated.
