Struct tak::Game
[−]
[src]
pub struct Game { // some fields omitted }
Methods
impl Game
[src]
fn new(size: usize) -> Game
fn size(&self) -> usize
fn to_string(&self) -> String
fn play(&mut self, turn: &str, player: Player, owner: Option<Player>) -> Result<Option<Player>, String>
fn play_parsed(&mut self, turn: Turn, owner: Option<Player>) -> Result<Option<Player>, String>
fn check_flat_winner(&self) -> Option<Player>
Checks for the winner via a flat win
Counts the number of pieces laid, and if either player is out of pieces, then tallies the points to determine the winner
Trait Implementations
impl Encodable for Game
[src]
impl Decodable for Game
[src]
impl Debug for Game
[src]
impl Clone for Game
[src]
fn clone(&self) -> Game
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