Struct libcoinche::trick::Trick [] [src]

pub struct Trick {
    pub cards: [Option<Card>; 4],
    pub first: PlayerPos,
    pub winner: PlayerPos,
}

The current cards on the table.

Fields

Cards currently on the table (they are None until played).

First player in this trick.

Current winner of the trick (updated after each card played).

Methods

impl Trick
[src]

Creates a new, empty trick.

Returns the points value of this trick.

Plays a card.

Updates the winner.

Returns true if this completes the trick.

Returns the starting suit for this trick.

Returns None if the trick hasn't started yet.

Trait Implementations

impl Clone for Trick
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Trick
[src]

Formats the value using the given formatter.