Enum zero_sum::impls::tak::Resolution [] [src]

pub enum Resolution {
    Road(Color),
    Flat(Color),
    Draw,
}

The ways a game can end.

Variants

One player has completed a road.

A player has run out of stones or the board is completely full, and one player has more flatstones.

A player has run out of stones or the board is completely full, and neither player has more flatstones.

Trait Implementations

impl Debug for Resolution
[src]

Formats the value using the given formatter.

impl Resolution for Resolution
[src]

Returns the index of the winning player (0 for white, 1 for black) if the value is either a Road or a Flat; None otherwise.

Returns true if the value is a Draw.