pub struct UciSearchOptions {
pub searchmoves: Vec<String>,
pub ponder: bool,
pub wtime: Option<Duration>,
pub btime: Option<Duration>,
pub winc: Option<Duration>,
pub binc: Option<Duration>,
pub movestogo: Option<u32>,
pub depth: Option<u32>,
pub nodes: Option<u32>,
pub mate: Option<u32>,
pub movetime: Option<Duration>,
pub infinite: bool,
}
Expand description
Represents the arguments that can be sent to your engine via the go
command.
Fields§
§searchmoves: Vec<String>
§ponder: bool
ponder
Start searching in pondering mode.
Do not exit the search in ponder mode, even if it’s mate!
This means that the last move sent in in the position string is the ponder
move. The engine can do what it wants to do, but after a ponderhit
command
it should execute the suggested move to ponder on. This means that the ponder
move sent by the GUI can be interpreted as a recommendation about which move
to ponder. However, if the engine decides to ponder on a different move, it
should not display any mainlines as they are likely to be misinterpreted by
the GUI because the GUI expects the engine to ponder on the suggested move.
wtime: Option<Duration>
wtime <x>
White has x
milliseconds left on the clock.
btime: Option<Duration>
btime <x>
Black has x
milliseconds left on the clock.
winc: Option<Duration>
winc <x>
White increment per move in milliseconds if x > 0
.
binc: Option<Duration>
binc <x>
Black increment per move in milliseconds if x > 0
.
movestogo: Option<u32>
movestogo <x>
There are x
moves to the next time control.
This will only be sent if x > 0
.
If you don’t get this and get the wtime
and btime
, it’s sudden death.
depth: Option<u32>
depth <x>
Search x
plies only.
nodes: Option<u32>
nodes <x>
Search x
nodes only.
mate: Option<u32>
mate <x>
Search for a mate in x
moves.
movetime: Option<Duration>
movetime <x>
Search exactly x
milliseconds.
infinite: bool
infinite
Search until the stop
command. Do not exit the search without being told
so in this mode!
Trait Implementations§
Source§impl Clone for UciSearchOptions
impl Clone for UciSearchOptions
Source§fn clone(&self) -> UciSearchOptions
fn clone(&self) -> UciSearchOptions
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for UciSearchOptions
impl Debug for UciSearchOptions
Source§impl Default for UciSearchOptions
impl Default for UciSearchOptions
Source§fn default() -> UciSearchOptions
fn default() -> UciSearchOptions
Source§impl Display for UciSearchOptions
impl Display for UciSearchOptions
Source§fn fmt(&self, f: &mut Formatter<'_>) -> Result
fn fmt(&self, f: &mut Formatter<'_>) -> Result
Formats the UciSearchOptions
using the given formatter.
This will always format the fields in the order in which they are listed in the protocol definition.
go perft
will appear last, if the parse-go-perft
feature is enabled.