Struct spades::Game [−][src]
pub struct Game { pub scoring: ScoringState, pub current_player: usize, pub rotation_status: usize, pub deck: Vec<Card>, pub hands_played: Vec<[Card; 4]>, pub bets_placed: Vec<[i32; 4]>, // some fields omitted }
Fields
scoring: ScoringState
current_player: usize
rotation_status: usize
deck: Vec<Card>
hands_played: Vec<[Card; 4]>
bets_placed: Vec<[i32; 4]>
Methods
impl Game
[src]
impl Game
pub fn new(id: Uuid, player_ids: [Uuid; 4], max_points: i32) -> Game
[src]
pub fn new(id: Uuid, player_ids: [Uuid; 4], max_points: i32) -> Game
pub fn get_hand(&self, player: usize) -> &Vec<Card>
[src]
pub fn get_hand(&self, player: usize) -> &Vec<Card>
pub fn play(
&mut self,
entry: GameTransition
) -> Result<Success, TransitionError>
[src]
pub fn play(
&mut self,
entry: GameTransition
) -> Result<Success, TransitionError>