[−][src]Trait ggpf::game::Game
Game with one or multiple players.
Associated Types
type Player: Hash + PartialEq + Eq + Copy + Clone + Debug + Sync + Send + Into<u8>
The type representing each player.
Required methods
fn player_after(player: Self::Player) -> Self::Player
Assuming a static player order, returns who should play after given player.
fn players() -> Vec<Self::Player>
Returns the list of players for the game.
fn turn(&self) -> Self::Player
Returns whose turn it is.
Implementors
impl Game for Breakthrough
[src]
type Player = Color
fn players() -> Vec<Color>
[src]
fn player_after(player: Self::Player) -> Self::Player
[src]
fn turn(&self) -> Color
[src]
impl Game for MisereBreakthrough
[src]
type Player = Color
fn players() -> Vec<Color>
[src]
fn turn(&self) -> Color
[src]
fn player_after(player: Self::Player) -> Self::Player
[src]
impl<G> Game for Simulated<G> where
G: Features + 'static,
[src]
G: Features + 'static,
type Player = G::Player
fn players() -> Vec<Self::Player>
[src]
fn player_after(player: Self::Player) -> Self::Player
[src]
fn turn(&self) -> Self::Player
[src]
impl<G: Game + Clone + Sync + Send> Game for WithHistory<G>
[src]
type Player = G::Player
fn players() -> Vec<Self::Player>
[src]
fn player_after(player: Self::Player) -> Self::Player
[src]
fn turn(&self) -> Self::Player
[src]
impl<G: Singleplayer> Game for G
[src]
A single-player game can be written as a game with a default player that plays all the turns.