pub struct EvaluationParameters {
Show 22 fields pub piece_value: [i16; 6], pub piece_phase_value: [u8; 6], pub initial_game_phase: u8, pub mobility_opening: [i16; 6], pub mobility_ending: [i16; 6], pub mobility_center_multiplier: [i16; 6], pub doubled_pawn_opening: i16, pub doubled_pawn_ending: i16, pub isolated_pawn_opening: i16, pub isolated_pawn_ending: i16, pub chained_pawn_opening: i16, pub chained_pawn_ending: i16, pub passed_pawn_opening: i16, pub passed_pawn_ending: i16, pub pawn_shield_opening: i16, pub pawn_shield_ending: i16, pub pawn_shield_open_file_opening: i16, pub pawn_shield_open_file_ending: i16, pub king_attacked_squares_opening: i16, pub king_attacked_squares_ending: i16, pub pst: [[[[i16; 64]; 2]; 6]; 2], pub pst_patterns: [[[i16; 64]; 2]; 6],
}

Fields§

§piece_value: [i16; 6]§piece_phase_value: [u8; 6]§initial_game_phase: u8§mobility_opening: [i16; 6]§mobility_ending: [i16; 6]§mobility_center_multiplier: [i16; 6]§doubled_pawn_opening: i16§doubled_pawn_ending: i16§isolated_pawn_opening: i16§isolated_pawn_ending: i16§chained_pawn_opening: i16§chained_pawn_ending: i16§passed_pawn_opening: i16§passed_pawn_ending: i16§pawn_shield_opening: i16§pawn_shield_ending: i16§pawn_shield_open_file_opening: i16§pawn_shield_open_file_ending: i16§king_attacked_squares_opening: i16§king_attacked_squares_ending: i16§pst: [[[[i16; 64]; 2]; 6]; 2]§pst_patterns: [[[i16; 64]; 2]; 6]

Implementations§

source§

impl EvaluationParameters

source

pub fn get_bishop_pst_pattern(&self) -> [[i16; 64]; 2]

source§

impl EvaluationParameters

source

pub fn get_king_pst_pattern(&self) -> [[i16; 64]; 2]

source§

impl EvaluationParameters

source

pub fn get_knight_pst_pattern(&self) -> [[i16; 64]; 2]

source§

impl EvaluationParameters

source

pub fn get_pawn_pst_pattern(&self) -> [[i16; 64]; 2]

source§

impl EvaluationParameters

source

pub fn get_queen_pst_pattern(&self) -> [[i16; 64]; 2]

source§

impl EvaluationParameters

source

pub fn get_rook_pst_pattern(&self) -> [[i16; 64]; 2]

source§

impl EvaluationParameters

source

fn set_default_pst_patterns(&mut self)

Initializes PST patterns with used by default during search.

source

pub fn recalculate(&mut self)

Recalculates initial material and PST tables.

source

fn calculate_pst(&self, color: usize, pattern: &[i16; 64]) -> [i16; 64]

Calculates PST table for the specified color and pattern.

source

pub fn get_pst_value( &self, color: usize, piece: usize, phase: usize, square: usize ) -> i16

Gets a PST value for the specified color, piece, phase and square.

Trait Implementations§

source§

impl Clone for EvaluationParameters

source§

fn clone(&self) -> EvaluationParameters

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 EvaluationParameters

source§

fn default() -> Self

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

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.

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.