Struct tak::board::Board [] [src]

pub struct Board {
    // some fields omitted
}

Methods

impl Board
[src]

fn new(board_size: usize) -> Board

fn at(&self, point: &Point) -> Result<&Square, &str>

fn at_mut(&mut self, point: &Point) -> Result<&mut Square, &str>

fn size(&self) -> usize

fn squares(&self) -> Vec<&Square>

fn full(&self) -> bool

Checks to see if all spaces have at least one piece

fn piece_limits(&self) -> (u32, u32)

fn used_up(&self, piece: &Piece) -> bool

fn follow(&self, starts: &mut VecDeque<Point>, player: Player) -> BTreeSet<Point>

fn piece_counts(&self) -> (u32, u32, u32, u32)

Counts total pieces of each type used

Trait Implementations

impl Encodable for Board
[src]

fn encode<__S: Encoder>(&self, __arg_0: &mut __S) -> Result<(), __S::Error>

impl Decodable for Board
[src]

fn decode<__D: Decoder>(__arg_0: &mut __D) -> Result<Board, __D::Error>

impl Debug for Board
[src]

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

Formats the value using the given formatter.

impl Clone for Board
[src]

fn clone(&self) -> Board

Returns a copy of the value. Read more

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

Performs copy-assignment from source. Read more

impl Display for Board
[src]

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

Formats the value using the given formatter.