pub struct GameSum<'a, G, const MISERE: bool = false> {
game: &'a mut G,
}Fields§
§game: &'a mut GImplementations§
Source§impl<'a, 'g, G> GameSum<'a, ImpartialGraph<'g, G>>
impl<'a, 'g, G> GameSum<'a, ImpartialGraph<'g, G>>
pub fn grundy(self) -> GameAnalysis<'a, ImpartialGraph<'g, G>, [G::Vertex], u64>
Source§impl<'a, 'g, G, const MISERE: bool> GameSum<'a, ImpartialGraph<'g, G>, MISERE>
impl<'a, 'g, G, const MISERE: bool> GameSum<'a, ImpartialGraph<'g, G>, MISERE>
Sourcepub fn outcome(
self,
) -> GameAnalysis<'a, ImpartialGraph<'g, G>, [G::Vertex], GameOutcome, MISERE>
pub fn outcome( self, ) -> GameAnalysis<'a, ImpartialGraph<'g, G>, [G::Vertex], GameOutcome, MISERE>
Normal play combines generalized Grundy values, including cyclic positions. Misere explores the sum graph, which can grow exponentially in the component count.
Source§impl<'a, S, L, F, I, const MISERE: bool> GameSum<'a, Impartial<S, F>, MISERE>
impl<'a, S, L, F, I, const MISERE: bool> GameSum<'a, Impartial<S, F>, MISERE>
pub fn outcome( self, ) -> GameAnalysis<'a, Impartial<S, F>, [S], GameOutcome, MISERE>
Source§impl<'a, S, L, FL, FR, IL, IR, const MISERE: bool> GameSum<'a, Partisan<S, FL, FR>, MISERE>
impl<'a, S, L, FL, FR, IL, IR, const MISERE: bool> GameSum<'a, Partisan<S, FL, FR>, MISERE>
Sourcepub fn outcome(
self,
) -> GameAnalysis<'a, Partisan<S, FL, FR>, [S], PartisanOutcome, MISERE>
pub fn outcome( self, ) -> GameAnalysis<'a, Partisan<S, FL, FR>, [S], PartisanOutcome, MISERE>
Explores reachable sum positions, including the player to move. Reuses cached sums of numbers, ups, nimbers and switches in normal play.
Auto Trait Implementations§
impl<'a, G, const MISERE: bool = false> !UnwindSafe for GameSum<'a, G, MISERE>
impl<'a, G, const MISERE: bool> Forget for GameSum<'a, G, MISERE>
impl<'a, G, const MISERE: bool> Freeze for GameSum<'a, G, MISERE>
impl<'a, G, const MISERE: bool> Move for GameSum<'a, G, MISERE>
impl<'a, G, const MISERE: bool> RefUnwindSafe for GameSum<'a, G, MISERE>where
&'a mut G: RefUnwindSafe,
impl<'a, G, const MISERE: bool> Send for GameSum<'a, G, MISERE>
impl<'a, G, const MISERE: bool> Sync for GameSum<'a, G, MISERE>
impl<'a, G, const MISERE: bool> Unpin for GameSum<'a, G, MISERE>
impl<'a, G, const MISERE: bool> UnsafeUnpin for GameSum<'a, G, MISERE>where
&'a mut G: UnsafeUnpin,
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