Struct timecat::HalfKPModel
source · pub struct HalfKPModel { /* private fields */ }Implementations§
source§impl HalfKPModel
impl HalfKPModel
pub fn index(&self, turn: Color, piece: Piece, square: Square) -> usize
pub fn activate_non_king_piece( &mut self, turn: Color, piece: Piece, square: Square, )
pub fn deactivate_non_king_piece( &mut self, turn: Color, piece: Piece, square: Square, )
pub fn clear_one_side(&mut self, turn: Color)
pub fn clear(&mut self)
pub fn reset_model(&mut self, sub_board: &SubBoard)
pub fn update_model(&mut self, sub_board: &SubBoard)
pub fn evaluate_current_state_flipped(&self, turn: Color) -> Score
pub fn evaluate_current_state(&self, turn: Color) -> Score
pub fn update_model_and_evaluate(&mut self, sub_board: &SubBoard) -> Score
pub fn slow_evaluate_from_sub_board(&self, sub_board: &SubBoard) -> Score
Trait Implementations§
source§impl Clone for HalfKPModel
impl Clone for HalfKPModel
source§fn clone(&self) -> HalfKPModel
fn clone(&self) -> HalfKPModel
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for HalfKPModel
impl RefUnwindSafe for HalfKPModel
impl Send for HalfKPModel
impl Sync for HalfKPModel
impl Unpin for HalfKPModel
impl UnwindSafe for HalfKPModel
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)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