pub struct Engine { /* private fields */ }Implementations§
source§impl Engine
impl Engine
pub fn new(board: Board, transposition_table: TranspositionTable) -> Self
pub fn get_board(&self) -> &Board
pub fn get_board_mut(&mut self) -> &mut Board
pub fn get_transposition_table(&self) -> &TranspositionTable
pub fn set_fen(&mut self, fen: &str) -> Result<(), EngineError>
pub fn from_fen(fen: &str) -> Result<Self, EngineError>
pub fn get_num_nodes_searched(&self) -> usize
pub fn get_selective_depth(&self) -> Ply
pub fn generate_searcher(&self, id: usize) -> Searcher
pub fn go(&self, command: GoCommand, verbose: bool) -> GoResponse
pub fn go_quiet(&self, command: GoCommand) -> GoResponse
pub fn go_verbose(&self, command: GoCommand) -> GoResponse
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Engine
impl RefUnwindSafe for Engine
impl Send for Engine
impl Sync for Engine
impl Unpin for Engine
impl UnwindSafe for Engine
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
Mutably borrows from an owned value. Read more
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more