[][src]Trait goban::rules::Rule

pub trait Rule {
    fn count_points(game: &Game) -> (f32, f32);
fn move_validation(game: &Game, stone: &Stone) -> Option<PlayError>; }

Required methods

fn count_points(game: &Game) -> (f32, f32)

Counts the point for each player. (black points, white points)

fn move_validation(game: &Game, stone: &Stone) -> Option<PlayError>

Returns if a move is valid or not dependent of the rules.

Loading content...

Implementors

impl Rule for JapRule
[src]

Loading content...