pub enum CoordinationPattern {
KnightOutpost {
square_index: u8,
is_white: bool,
strength: f32,
},
BishopPair {
is_white: bool,
open_diagonals: u8,
},
RookLift {
from_rank_index: u8,
to_rank_index: u8,
is_white: bool,
},
QueenKnightAttack {
target_area: KingArea,
is_white: bool,
},
PositionalSacrifice {
piece_type: u8,
compensation: f32,
},
ActivityAdvantage {
is_white: bool,
activity_differential: f32,
},
}Expand description
Piece coordination patterns
Variants§
KnightOutpost
Knight outpost on strong squares
BishopPair
Bishop pair advantages in open positions
RookLift
Rook lift patterns for attack
QueenKnightAttack
Queen and knight coordination
PositionalSacrifice
Piece sacrifices for positional advantage
ActivityAdvantage
Piece activity vs opponent passivity
Trait Implementations§
Source§impl Clone for CoordinationPattern
impl Clone for CoordinationPattern
Source§fn clone(&self) -> CoordinationPattern
fn clone(&self) -> CoordinationPattern
Returns a duplicate 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 CoordinationPattern
impl Debug for CoordinationPattern
Source§impl<'de> Deserialize<'de> for CoordinationPattern
impl<'de> Deserialize<'de> for CoordinationPattern
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 CoordinationPattern
impl RefUnwindSafe for CoordinationPattern
impl Send for CoordinationPattern
impl Sync for CoordinationPattern
impl Unpin for CoordinationPattern
impl UnwindSafe for CoordinationPattern
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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