pub struct GamePhaseDetector { /* private fields */ }Expand description
Enhanced game phase detector with detailed analysis and adaptation
Implementations§
Source§impl GamePhaseDetector
impl GamePhaseDetector
pub fn new() -> Self
Sourcepub fn with_phase_weights(self, weights: PhaseDetectionWeights) -> Self
pub fn with_phase_weights(self, weights: PhaseDetectionWeights) -> Self
Create a phase detector with custom weights
Sourcepub fn with_adaptation_settings(self, settings: PhaseAdaptationSettings) -> Self
pub fn with_adaptation_settings(self, settings: PhaseAdaptationSettings) -> Self
Create a phase detector with custom adaptation settings
Sourcepub fn detect_phase(&self, board: &Board) -> GamePhase
pub fn detect_phase(&self, board: &Board) -> GamePhase
Detect the current game phase
Sourcepub fn analyze_game_phase(&self, board: &Board) -> GamePhaseAnalysisResult
pub fn analyze_game_phase(&self, board: &Board) -> GamePhaseAnalysisResult
Perform detailed game phase analysis
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for GamePhaseDetector
impl RefUnwindSafe for GamePhaseDetector
impl Send for GamePhaseDetector
impl Sync for GamePhaseDetector
impl Unpin for GamePhaseDetector
impl UnwindSafe for GamePhaseDetector
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> 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