Struct alcibiades::stock::SimpleEvaluator
[−]
[src]
pub struct SimpleEvaluator { /* fields omitted */ }
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<(&'static str, OptionDescription)> where
Self: Sized,
Self: Sized,
Returns a list of supported configuration options (name and description). Read more
fn set_option(name: &str, value: &str) where
Self: Sized,
Self: Sized,
Updates the internal state to keep up with the new value for a given configuration option. Read more
impl Evaluator for SimpleEvaluator
[src]
fn new(position: &Board) -> SimpleEvaluator
Creates a new instance bound to a given position. Read more
fn done_move(&mut self, _: &Board, m: Move)
Updates evaluator's state to keep up with a move that was played. Read more
fn undone_move(&mut self, _: &Board, m: Move)
Updates evaluator's state in accordance with a move that was taken back. Read more
fn evaluate(&self, position: &Board) -> Value
Evaluates the the position to which the evaluator is currently bound. Read more
fn is_zugzwangy(&self, position: &Board) -> bool
Returns whether the position to which the evaluator is currently bound is "zugzwangy". Read more
fn will_do_move(&mut self, position: &Board, m: Move)
Updates evaluator's state to keep up with a move that will be played. Read more
fn will_undo_move(&mut self, position: &Board, m: Move)
Updates evaluator's state to keep up with a move that will be taken back. Read more