Struct onitama::game::Game
[−]
[src]
pub struct Game { pub turn: Side, pub board: Board, pub start_cards: [Card; 5], pub player_cards: [HashSet<Card>; 2], pub free_card: Card, }
Fields
turn: Side
board: Board
start_cards: [Card; 5]
player_cards: [HashSet<Card>; 2]
free_card: Card
Methods
impl Game
[src]
fn new(cards: [Card; 5]) -> Game
fn cards_of(&self, side: Side) -> HashSet<Card>
fn current_player_cards(&self) -> HashSet<Card>
fn is_over(&self) -> bool
fn after(&self, m: Move) -> Game
Trait Implementations
impl PartialEq for Game
[src]
fn eq(&self, __arg_0: &Game) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Game) -> bool
This method tests for !=
.
impl Eq for Game
[src]
impl Clone for Game
[src]
fn clone(&self) -> Game
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more