Struct UciSearchOptions

Source
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

Source§

fn clone(&self) -> UciSearchOptions

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for UciSearchOptions

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for UciSearchOptions

Source§

fn default() -> UciSearchOptions

Returns the “default value” for a type. Read more
Source§

impl Display for UciSearchOptions

Source§

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

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for UciSearchOptions

Source§

fn eq(&self, other: &UciSearchOptions) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Eq for UciSearchOptions

Source§

impl StructuralPartialEq for UciSearchOptions

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.