Struct libcoinche::game::GameState [] [src]

pub struct GameState { /* fields omitted */ }

Describes the state of a coinche game, ready to play a card.

Methods

impl GameState
[src]

Creates a new GameState, with the given cards, first player and contract.

Returns the contract used for this game

Try to play a card

Returns the player expected to play next.

Returns the cards of all players

Return the last trick, if possible

Returns the current trick.

Trait Implementations

impl Clone for GameState
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more