[−][src]Struct chess_move_gen::PieceSquareTable
PieceSquareTable gives scores for pieces on squares from the perspective of white. See https://www.chessprogramming.org/Piece-Square_Tables
Implementations
impl PieceSquareTable
[src]
pub fn new(piece_square_values: [[i16; 64]; 6]) -> PieceSquareTable
[src]
piece_square_values should encode positional and material value of piece on each square. eg if pawn is worth +100 material value and pawn on D4 is worth +20 as positional value, entry for pawn on D4 should equal 100 + 20 = +120.
pub fn castle_score(&self, castle: Castle) -> i16
[src]
pub fn score(&self, kind: Kind, sq: Square) -> i16
[src]
Score relative to white. Use Square#from_side to convert a square to the perspective of a given player (ie flip board if black)
Trait Implementations
impl Clone for PieceSquareTable
[src]
pub fn clone(&self) -> PieceSquareTable
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
Auto Trait Implementations
impl RefUnwindSafe for PieceSquareTable
impl Send for PieceSquareTable
impl Sync for PieceSquareTable
impl Unpin for PieceSquareTable
impl UnwindSafe for PieceSquareTable
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> Cast<U> for T where
U: FromCast<T>,
[src]
U: FromCast<T>,
impl<T> From<T> for T
[src]
impl<T> FromCast<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,