[−][src]Struct fox_and_hounds::game::noughts_and_crosses::NoughtsAndCrosses
Methods
impl NoughtsAndCrosses
[src]
pub fn new() -> NoughtsAndCrosses
[src]
Trait Implementations
impl Clone for NoughtsAndCrosses
[src]
fn clone(&self) -> NoughtsAndCrosses
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for NoughtsAndCrosses
[src]
impl Game for NoughtsAndCrosses
[src]
type Move = NCMove
fn possible_moves(&self) -> Vec<Self::Move>
[src]
fn execute_move(&self, mov: Self::Move) -> Self
[src]
fn do_move(&mut self, mov: Self::Move) -> Self::Move
[src]
fn undo_move(&mut self, mov: Self::Move)
[src]
fn get_score(&self) -> i32
[src]
fn score_if_win_next_round(&self) -> i32
[src]
fn is_game_over(&self) -> bool
[src]
fn calculate_move<T: Algorithm>(
&self,
depth: i32,
_: bool
) -> Option<Self::Move>
[src]
&self,
depth: i32,
_: bool
) -> Option<Self::Move>
const SCORE_MAX: i32
[src]
const SCORE_MIN: i32
[src]
Auto Trait Implementations
impl RefUnwindSafe for NoughtsAndCrosses
impl Send for NoughtsAndCrosses
impl Sync for NoughtsAndCrosses
impl Unpin for NoughtsAndCrosses
impl UnwindSafe for NoughtsAndCrosses
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,