pub struct IterativeOptions {
    pub table_byte_size: usize,
    pub verbose: bool,
    /* private fields */
}
Expand description

Options to use for the iterative search engines.

Fields§

§table_byte_size: usize§verbose: bool

Implementations§

source§

impl IterativeOptions

source

pub fn new() -> Self

source§

impl IterativeOptions

source

pub fn with_table_byte_size(self, size: usize) -> Self

Approximately how large the transposition table should be in memory.

source

pub fn with_replacement_strategy(self, strategy: Replacement) -> Self

What rules to use when choosing whether to overwrite the current value in the transposition table.

Whether to add null-window searches to try to prune branches that are probably worse than those already found. Also known as principal variation search.

source

pub fn with_null_move_depth(self, depth_reduction: u8) -> Self

Whether to attempt to cut off early by seeing if each node is amazing even after passing the turn to the opponent. Null move search explores the tree at a depth reduced by this amount.

source

pub fn with_singular_extension(self) -> Self

Whether to extend a branch of the search (by 1) if there is only one move (or only one reasonable move).

source

pub fn with_aspiration_window(self, window: Evaluation) -> Self

Whether to search first in a narrow window around the previous root value on each iteration.

source

pub fn with_mtdf(self) -> Self

Whether to search for the correct value in each iteration using only null-window “Tests”, with the MTD(f) algorithm. Can be more efficient if the evaluation function is coarse grained.

source

pub fn with_double_step_increment(self) -> Self

Increment the depth by two between iterations.

source

pub fn with_quiescence_search_depth(self, depth: u8) -> Self

Enable quiescence search at the leaves of the search tree. The Evaluator must implement generate_noisy_moves for the search to know when the state has become “quiet”.

source

pub fn with_min_reorder_moves_depth(self, depth: u8) -> Self

Enable the Evaluator’s move reordering after generating moves for all nodes at this depth or higher. Reordering can be an expensive operation, but it could cut off a lot of nodes if done well high in the search tree.

source

pub fn with_countermoves(self) -> Self

Enable the countermove table, which reorders to the front moves that have worked to counter the previous move in other branches.

source

pub fn with_countermove_history(self) -> Self

Enable the countermove history table. It keeps a counter for moves that have caused beta cutoffs in other branches, and reorders moves based on this counter.

source

pub fn verbose(self) -> Self

Enable verbose print statements of the ongoing performance of the search.

Trait Implementations§

source§

impl Clone for IterativeOptions

source§

fn clone(&self) -> IterativeOptions

Returns a copy 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 Default for IterativeOptions

source§

fn default() -> Self

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

impl Copy for IterativeOptions

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

source§

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

Mutably borrows from an owned value. 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 Twhere 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.

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> ToOwned for Twhere T: Clone,

§

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, U> TryFrom<U> for Twhere U: Into<T>,

§

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 Twhere U: TryFrom<T>,

§

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.
§

impl<V, T> VZip<V> for Twhere V: MultiLane<T>,

§

fn vzip(self) -> V