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: boolponderStart 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: boolinfiniteSearch 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.
source§impl Hash for UciSearchOptions
impl Hash for UciSearchOptions
source§impl PartialEq for UciSearchOptions
impl PartialEq for UciSearchOptions
impl Eq for UciSearchOptions
impl StructuralPartialEq for UciSearchOptions
Auto Trait Implementations§
impl Freeze for UciSearchOptions
impl RefUnwindSafe for UciSearchOptions
impl Send for UciSearchOptions
impl Sync for UciSearchOptions
impl Unpin for UciSearchOptions
impl UnwindSafe for UciSearchOptions
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)