pub struct MoveSorter { /* private fields */ }Implementations§
Source§impl MoveSorter
impl MoveSorter
pub fn new() -> Self
pub fn reset_variables(&mut self)
pub fn update_killer_moves(&mut self, killer_move: Move, ply: Ply)
pub fn is_killer_move(&self, move_: Move, ply: Ply) -> bool
pub fn add_history_move( &mut self, history_move: Move, position: &ChessPosition, depth: Depth, )
pub fn get_history_score( &self, history_move: Move, position: &ChessPosition, ) -> MoveWeight
pub fn get_weighted_moves_sorted( &mut self, position: &ChessPosition, moves: impl IntoIterator<Item = Move>, transposition_table: &TranspositionTable, ply: Ply, best_move: Option<Move>, pv_move: Option<Move>, ) -> WeightedMoveListSorter ⓘ
pub fn get_weighted_capture_moves_sorted( &self, position: &ChessPosition, transposition_table: &TranspositionTable, ) -> WeightedMoveListSorter ⓘ
pub fn score_root_moves<P: PositionEvaluation>( board: &Board, evaluator: &mut P, move_: Move, pv_move: Option<Move>, best_moves: &[Move], ) -> MoveWeight
pub fn follow_pv(&mut self)
pub fn is_following_pv(&self) -> bool
Trait Implementations§
Source§impl Clone for MoveSorter
impl Clone for MoveSorter
Source§fn clone(&self) -> MoveSorter
fn clone(&self) -> MoveSorter
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 moreSource§impl Debug for MoveSorter
impl Debug for MoveSorter
Source§impl Default for MoveSorter
impl Default for MoveSorter
Source§impl<'de> Deserialize<'de> for MoveSorter
impl<'de> Deserialize<'de> for MoveSorter
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for MoveSorter
impl RefUnwindSafe for MoveSorter
impl Send for MoveSorter
impl Sync for MoveSorter
impl Unpin for MoveSorter
impl UnwindSafe for MoveSorter
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§impl<T> FromQuery for Twhere
T: DeserializeOwned,
impl<T> FromQuery for Twhere
T: DeserializeOwned,
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