Struct joseki::Game
[−]
[src]
pub struct Game { /* fields omitted */ }
Methods
impl Game
[src]
fn new() -> Game
[src]
Creates a new game with an empty board state.
fn from_str(board: &str) -> Game
[src]
Creates a new game from a string representation of the board state.
fn from_sgf<P: AsRef<Path>>(path: P) -> Game
[src]
Creates a game from a given SGF file.
fn make_move(&mut self, stone: Stone, x: usize, y: usize) -> bool
[src]
Places stone
at (x, y)
, returning true if it was successful (respecting the ko rule).
Trait Implementations
impl Clone for Game
[src]
fn clone(&self) -> Game
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for Game
[src]
impl PartialEq for Game
[src]
fn eq(&self, __arg_0: &Game) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Game) -> bool
[src]
This method tests for !=
.