[][src]Trait mcts::GameState

pub trait GameState: Clone {
    type Move: Sync + Send + Clone;
    type Player: Sync;
    type MoveList: IntoIterator<Item = Self::Move>;
    fn current_player(&self) -> Self::Player;
fn available_moves(&self) -> Self::MoveList;
fn make_move(&mut self, mov: &Self::Move); }

Associated Types

type Move: Sync + Send + Clone

type Player: Sync

type MoveList: IntoIterator<Item = Self::Move>

Loading content...

Required methods

fn current_player(&self) -> Self::Player

fn available_moves(&self) -> Self::MoveList

fn make_move(&mut self, mov: &Self::Move)

Loading content...

Implementors

Loading content...