[][src]Trait oxymcts::Evaluator

pub trait Evaluator<State: GameTrait, Reward: Clone, AdditionalInfo: Clone + Default> {
    type Args;
    type EvalResult: Clone;
    fn eval_child(
        child: &LazyMctsNode<State, Reward, AdditionalInfo>,
        turn: &State::Player,
        parent_visits: Nat,
        args: &Self::Args
    ) -> Num;
fn evaluate_leaf(child: State, turn: &State::Player) -> Self::EvalResult; }

Associated Types

Loading content...

Required methods

fn eval_child(
    child: &LazyMctsNode<State, Reward, AdditionalInfo>,
    turn: &State::Player,
    parent_visits: Nat,
    args: &Self::Args
) -> Num

Evaluates each node of the monte carlo tree search. for ex: using UCT

fn evaluate_leaf(child: State, turn: &State::Player) -> Self::EvalResult

Evaluates the a final state, when a simulation is over when call this function to know the reward.

Loading content...

Implementors

Loading content...