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]
impl Decodable for Board
[src]
impl Debug for Board
[src]
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