|
BenBot 1.7.5
A chess engine
|
#include <libbenbot/search/Options.hpp>
Static Public Member Functions | |
| static auto | from_libchess (const chess::uci::GoCommandOptions &goOptions, bool isWhiteToMove) -> Options |
Public Attributes | |
| size_t | depth { std::numeric_limits<size_t>::max() } |
| bool | infinite { false } |
| std::optional< size_t > | mateIn |
| size_t | maxNodes { std::numeric_limits<size_t>::max() } |
| std::chrono::milliseconds | moveOverhead { 0uz } |
| chess::moves::MoveList | movesToSearch |
| std::optional< std::chrono::milliseconds > | searchTime |
This struct encapsulates the parameters to the search algorithm.
Definition at line 52 of file Options.hpp.
|
staticnodiscard |
Translates the raw UCI "go" command options into this struct's fields.
| size_t ben_bot::search::Options::depth { std::numeric_limits<size_t>::max() } |
The maximum search depth (in plies).
Definition at line 54 of file Options.hpp.
| bool ben_bot::search::Options::infinite { false } |
If true, the search should not exit until a stop or exit command is received.
Definition at line 75 of file Options.hpp.
| std::optional<size_t> ben_bot::search::Options::mateIn |
Search for mate in this many moves.
Definition at line 78 of file Options.hpp.
| size_t ben_bot::search::Options::maxNodes { std::numeric_limits<size_t>::max() } |
Search only this many nodes. Setting this value too low can really emphasize the effects of our move ordering algorithm.
Definition at line 65 of file Options.hpp.
| std::chrono::milliseconds ben_bot::search::Options::moveOverhead { 0uz } |
Move overhead time subtracted from maximum search time.
Definition at line 60 of file Options.hpp.
| chess::moves::MoveList ben_bot::search::Options::movesToSearch |
Restrict the search to only these moves. If this is empty, all legal moves in the position will be searched.
Definition at line 70 of file Options.hpp.
| std::optional<std::chrono::milliseconds> ben_bot::search::Options::searchTime |
The maximum search time.
Definition at line 57 of file Options.hpp.