Trait gameai::game::RandGame
[−]
[src]
pub trait RandGame: Game + Clone { fn random_move<R: Rng>(&mut self, rng: &mut R) -> Option<ValidMoveMut<Self>> { ... } fn random_outcome<R: Rng>(self, rng: &mut R) -> Option<Self::Agent> { ... } fn monte_carlo<R: Rng>(self, rng: &mut R, trials: u32) -> u32 { ... } }
Provided Methods
fn random_move<R: Rng>(&mut self, rng: &mut R) -> Option<ValidMoveMut<Self>>
fn random_outcome<R: Rng>(self, rng: &mut R) -> Option<Self::Agent>
fn monte_carlo<R: Rng>(self, rng: &mut R, trials: u32) -> u32
Implementors
impl RandGame for ConnectFour
impl RandGame for Dots