Trait zero_sum::analysis::Evaluator
[−]
[src]
pub trait Evaluator { type State: State; type Evaluation: Evaluation; fn evaluate(&self, state: &Self::State) -> Self::Evaluation; fn evaluate_plies(
&self,
state: &Self::State,
plies: &[<Self::State as State>::Ply]
) -> Self::Evaluation { ... } }
Evaluates a State.
Associated Types
type State: State
type Evaluation: Evaluation
Required Methods
fn evaluate(&self, state: &Self::State) -> Self::Evaluation
Returns the evaluation of state
.
Provided Methods
fn evaluate_plies(
&self,
state: &Self::State,
plies: &[<Self::State as State>::Ply]
) -> Self::Evaluation
&self,
state: &Self::State,
plies: &[<Self::State as State>::Ply]
) -> Self::Evaluation
Returns the evaluation of state
after executing plies
.
Panics
Will panic if the execution of any ply in plies
causes an error.
Implementors
impl Evaluator for AnnEvaluator
impl Evaluator for StaticEvaluator
impl Evaluator for Evaluator