Struct spades::Game[][src]

pub struct Game { /* fields omitted */ }

Primary game state. Internally manages player rotation, scoring, and cards.

Methods

impl Game
[src]

See State

Returns GetError when the current game is not in the Betting or Trick stages.

Returns a GetError::InvalidUuid if the game does not contain a player with the given Uuid.

Returns an array with (only if in the trick stage).

Deprecated since 1.0.0

: Please use get_current_hand or get_hand_by_player_id

The primary function used to progress the game state. The first GameTransition argument must always be GameTransition::Start. The stages and player rotations are managed internally. The order of GameTransition arguments should be:

Start -> Bet * 4 -> Card * 13 -> Bet * 4 -> Card * 13 -> Bet * 4 -> ...

Trait Implementations

impl Debug for Game
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for Game

impl Sync for Game