TreePolicy

Trait TreePolicy 

Source
pub trait TreePolicy<A, Pl>: Sized
where A: GameAction, Pl: Player,
{ // Required method fn select_child<'a>( &self, node: &'a mut SearchNode<A, Pl>, is_max_player_turn: bool, ) -> &'a mut SearchNode<A, Pl>; }
Expand description

A trait that defines a tree policy.

Required Methods§

Source

fn select_child<'a>( &self, node: &'a mut SearchNode<A, Pl>, is_max_player_turn: bool, ) -> &'a mut SearchNode<A, Pl>

Selects a child node to explore.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<A, Pl> TreePolicy<A, Pl> for UctPolicy
where A: GameAction, Pl: Player,