[][src]Struct pleco_engine::search::Searcher

pub struct Searcher {
    pub id: usize,
    pub kill: AtomicBool,
    pub searching: Arc<GuardedBool>,
    pub cond: Arc<LockLatch>,
    pub depth_completed: i16,
    pub limit: Limits,
    pub board: Board,
    pub time_man: &'static TimeManager,
    pub pawns: PawnTable,
    pub material: Material,
    pub root_moves: UnsafeCell<RootMoveList>,
    pub selected_depth: i16,
    pub last_best_move: BitMove,
    pub last_best_move_depth: i16,
    pub nodes: AtomicU64,
    pub counter_moves: CounterMoveHistory,
    pub main_history: ButterflyHistory,
    pub capture_history: CapturePieceToHistory,
    pub cont_history: ContinuationHistory,
    pub previous_score: Value,
    pub best_move: BitMove,
    pub failed_low: bool,
    pub best_move_changes: f64,
    pub previous_time_reduction: f64,
}

Fields

id: usizekill: AtomicBoolsearching: Arc<GuardedBool>cond: Arc<LockLatch>depth_completed: i16limit: Limitsboard: Boardtime_man: &'static TimeManagerpawns: PawnTablematerial: Materialroot_moves: UnsafeCell<RootMoveList>selected_depth: i16last_best_move: BitMovelast_best_move_depth: i16nodes: AtomicU64counter_moves: CounterMoveHistorymain_history: ButterflyHistorycapture_history: CapturePieceToHistorycont_history: ContinuationHistoryprevious_score: Valuebest_move: BitMovefailed_low: boolbest_move_changes: f64previous_time_reduction: f64

Methods

impl Searcher[src]

pub fn new(id: usize, cond: Arc<LockLatch>) -> Self[src]

Creates a new Searcher of an ID and condition to be released by.

pub fn clear(&mut self)[src]

pub fn idle_loop(&mut self)[src]

Spins in idle loop, waiting for it's condition to unlock.

pub fn eval(&mut self) -> Value[src]

pub fn print_startup(&self)[src]

pub fn use_stdout(&self) -> bool[src]

pub fn root_moves(&self) -> &mut RootMoveList[src]

Trait Implementations

impl Drop for Searcher[src]

impl Sync for Searcher[src]

impl Send for Searcher[src]

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]