Struct alcibiades::stock::SimpleEvaluator
[−]
[src]
pub struct SimpleEvaluator;
A simple evaluator that adds a random number to the available material.
Trait Implementations
impl Clone for SimpleEvaluator
[src]
fn clone(&self) -> SimpleEvaluator
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 SetOption for SimpleEvaluator
[src]
fn options() -> Vec<(String, OptionDescription)>
Returns a list of supported configuration options (name and description). Read more
fn set_option(name: &str, value: &str)
Sets a new value for a given configuration option. Read more
impl Evaluator for SimpleEvaluator
[src]
fn new(board: &Board) -> SimpleEvaluator
Creates a new instance and binds it to a given position. Read more
fn evaluate(&self, board: &Board) -> Value
Evaluates the the position to which the instance is bound. Read more
fn is_zugzwangy(&self, board: &Board) -> bool
Returns whether the position is zugzwangy. Read more
fn will_do_move(&mut self, board: &Board, m: Move)
Updates evaluator's state to keep up with a move that will be played. Read more
fn done_move(&mut self, board: &Board, m: Move)
Updates evaluator's state to keep up with a move that was played. Read more
fn will_undo_move(&mut self, board: &Board, m: Move)
Updates evaluator's state to keep up with a move that will be taken back. Read more
fn undone_move(&mut self, board: &Board, m: Move)
Updates evaluator's state in accordance with a move that was taken back. Read more