Expand description
stockfish is a light, easy-to-use wrapper library for the Stockfish chess engine.
- Creation & Setup — Pass the path to the binary executable to
Stockfish::new, then callStockfish::setup_for_new_gameto ensure that it is ready for further commands. - Position — Use methods like
Stockfish::set_fen_positionandStockfish::play_movesto configure the chess position that Stockfish is working with. - Compute — Using methods such as
Stockfish::goorStockfish::go_for, prompt Stockfish to start calculating given the current chess position. - Output — Accessory types have been included (
EngineEval,EvalType,EngineOutput) to structure the output from Stockfish after it has concluded its calculations.
Structs§
- Engine
Eval - Represents the evaluation returned from the engine. Includes an
EvalTypeand a numerical score value. - Engine
Output - Represents the total output from the engine in regards to one specific position. Contains the engine’s score evaluation of the position as well as its determined best move.
- Stockfish
- The interface for interacting with a Stockfish process.
Enums§
- Eval
Type - The category of evaluation returned by stockfish. Either
CentipawnsorMate.