Struct libmancala::MancalaBoard
source · pub struct MancalaBoard {
pub p1_board: [u32; 6],
pub p2_board: [u32; 6],
pub p1_store: u32,
pub p2_store: u32,
pub turn: Player,
}
Expand description
Contains data relevant to the game.
Fields
p1_board: [u32; 6]
The contents of Player One’s row.
p2_board: [u32; 6]
The contents of Player Two’s row.
p1_store: u32
The number of stones is Player One’s store.
p2_store: u32
The number of stones is Player Two’s store.
turn: Player
Indicates whose turn it is.
Implementations
Auto Trait Implementations
impl RefUnwindSafe for MancalaBoard
impl Send for MancalaBoard
impl Sync for MancalaBoard
impl Unpin for MancalaBoard
impl UnwindSafe for MancalaBoard
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more