Struct gameai::game::dots::Dots
[−]
[src]
pub struct Dots { /* fields omitted */ }
Trait Implementations
impl RandGame for Dots
[src]
fn random_move<R: Rng>(&mut self, rng: &mut R) -> Option<ValidMoveMut<Self>>
[src]
fn random_outcome<R: Rng>(self, rng: &mut R) -> Option<Self::Agent>
[src]
fn monte_carlo<R: Rng>(self, rng: &mut R, trials: u32) -> u32
[src]
impl Clone for Dots
[src]
fn clone(&self) -> Dots
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for Dots
[src]
impl Eq for Dots
[src]
impl PartialEq for Dots
[src]
fn eq(&self, other: &Self) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl Display for Dots
[src]
fn fmt(&self, f: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Hash for Dots
[src]
fn hash<H: Hasher>(&self, state: &mut H)
[src]
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl ParseGame for Dots
[src]
fn parse_move(&self, s: &str) -> Option<DotsMove>
[src]
impl Game for Dots
[src]
type Agent = DotsPlayer
type Move = DotsMove
fn to_act(&self) -> Self::Agent
[src]
fn move_valid(&self, m: &Self::Move) -> bool
[src]
fn has_won(&self, agent: &Self::Agent) -> bool
[src]
fn apply(&mut self, m: Self::Move)
[src]
fn player_weight(&self, a: &Self::Agent) -> Score
[src]
fn winner(&self) -> Option<Self::Agent>
[src]
fn agent_id(&self, agent: &Self::Agent) -> u32
[src]
fn ref_player(&self) -> Self::Agent
[src]
fn new(start: &Self::Agent) -> Self
[src]
fn possible_moves(&self) -> Vec<ValidMove<Self>>
[src]
fn try_move_mut(&mut self, m: Self::Move) -> bool
[src]
fn verify_move_mut(&mut self, m: Self::Move) -> Option<ValidMoveMut<Self>>
[src]
fn verify_move(self, m: Self::Move) -> Option<ValidMove<Self>>
[src]
fn has_winner(&self) -> bool
[src]
fn try_move(&mut self, m: Self::Move) -> bool
[src]
fn try_moves<I>(&mut self, moves: I) -> Vec<bool> where
I: Iterator<Item = Self::Move>,
[src]
I: Iterator<Item = Self::Move>,