Struct gomoku::board::team::Team [] [src]

pub struct Team {
    color: Tile,
    captured: u32,
}

Fields

color
captured

Methods

impl Team

fn new(color: Tile) -> Team

The new constructor function returns the Team.

fn new_teams() -> (Team, Team)

Create all the teams of the game.

fn captured(&self) -> u32

fn get_tile(&self) -> Tile

fn get_ennemy_tile(&self) -> Tile

fn add_captured(&mut self, nb_captured: u32)

Trait Implementations

impl Display for Team

fn fmt(&self, f: &mut Formatter) -> Result<(), Error>

impl Default for Team

fn default() -> Self

Derived Implementations

impl Copy for Team

impl Clone for Team

fn clone(&self) -> Team

1.0.0fn clone_from(&mut self, source: &Self)

impl PartialEq for Team

fn eq(&self, __arg_0: &Team) -> bool

fn ne(&self, __arg_0: &Team) -> bool

impl Debug for Team

fn fmt(&self, __arg_0: &mut Formatter) -> Result