Struct mancala_board::MancalaBoard [−][src]
Fields
values: [u32; 14]
Implementations
impl MancalaBoard
[src]
pub fn default() -> MancalaBoard
[src]
pub fn from_position(values: [u32; 14]) -> MancalaBoard
[src]
pub fn print(&self)
[src]
pub fn flip(&mut self)
[src]
pub fn move_from_side(&mut self, index: usize, side: Side) -> bool
[src]
pub fn move_piece(&mut self, index: usize, side: Side) -> bool
[src]
pub fn game_over(&self) -> bool
[src]
pub fn winning(&self) -> Side
[src]
pub fn is_move_legal(&self, index: usize) -> bool
[src]
Auto Trait Implementations
impl RefUnwindSafe for MancalaBoard
[src]
impl Send for MancalaBoard
[src]
impl Sync for MancalaBoard
[src]
impl Unpin for MancalaBoard
[src]
impl UnwindSafe for MancalaBoard
[src]
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,
pub 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, 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.
pub 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>,