Struct libcoinche::bid::Auction [] [src]

pub struct Auction { /* fields omitted */ }

Represents the entire auction process.

Methods

impl Auction
[src]

Starts a new auction, starting with the player first.

Returns the current state of the auctions.

Returns the player that is expected to play next.

Bid a new, higher contract.

Look at the last offered contract.

Returns None if no contract was offered yet.

Returns the players cards.

The current player passes his turn.

Returns the new auction state :

  • AuctionState::Cancelled if all players passed
  • AuctionState::Over if 3 players passed in a row
  • The previous state otherwise

Attempt to coinche the current contract.

Consumes a complete auction to enter the second game phase.

If the auction was ready, returns Ok<GameState>