pub struct StrategicConfig {
pub initiative_weight: f32,
pub attacking_piece_bonus: f32,
pub dynamic_factor_weight: f32,
pub pawn_structure_planning: bool,
pub king_attack_square_bonus: f32,
pub piece_coordination_weight: f32,
pub enable_imbalance_creation: bool,
}Expand description
Configuration for strategic evaluation emphasizing proactive play
Fields§
§initiative_weight: f32Weight for initiative and attacking chances vs positional safety (0.0-1.0)
attacking_piece_bonus: f32Bonus for pieces actively participating in attack (centipawns)
dynamic_factor_weight: f32Weight for dynamic factors like tempo, development, piece activity (0.0-1.0)
pawn_structure_planning: boolEnable advanced pawn structure planning and pawn breaks
king_attack_square_bonus: f32Bonus for controlling key squares around enemy king (centipawns)
piece_coordination_weight: f32Weight for piece coordination in attacks (0.0-1.0)
enable_imbalance_creation: boolEnable generation of forcing moves that create imbalances
Implementations§
Source§impl StrategicConfig
impl StrategicConfig
Sourcepub fn aggressive() -> Self
pub fn aggressive() -> Self
Aggressive configuration for maximum initiative and attacking play
Sourcepub fn positional() -> Self
pub fn positional() -> Self
Positional configuration focusing on safety and long-term advantages
Sourcepub fn safety_first() -> Self
pub fn safety_first() -> Self
Safety-first configuration for solid, sound play
Sourcepub fn master_level() -> Self
pub fn master_level() -> Self
Master-level configuration for 2000+ ELO play
Trait Implementations§
Source§impl Clone for StrategicConfig
impl Clone for StrategicConfig
Source§fn clone(&self) -> StrategicConfig
fn clone(&self) -> StrategicConfig
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 StrategicConfig
impl Debug for StrategicConfig
Source§impl Default for StrategicConfig
impl Default for StrategicConfig
Source§impl<'de> Deserialize<'de> for StrategicConfig
impl<'de> Deserialize<'de> for StrategicConfig
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 StrategicConfig
impl RefUnwindSafe for StrategicConfig
impl Send for StrategicConfig
impl Sync for StrategicConfig
impl Unpin for StrategicConfig
impl UnwindSafe for StrategicConfig
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