game_solver::game

Trait Misere

Source
pub trait Misere: Game {
    // Provided method
    fn state<T>(&self) -> GameState<Self::Player> { ... }
}
Expand description

Marks a game as being ‘misere’ (a game has the ‘misere play’ convention).

Rather, this means that the game is lost by whoever plays last. Under this convention, no ties are possible: there has to exist a strategy for players to be able to force a win.

Learn more: https://en.wikipedia.org/wiki/Mis%C3%A8re#Mis%C3%A8re_game

Provided Methods§

Source

fn state<T>(&self) -> GameState<Self::Player>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§