pub trait TreePolicy<A, Pl>: Sizedwhere
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§
Sourcefn select_child<'a>(
&self,
node: &'a mut SearchNode<A, Pl>,
is_max_player_turn: bool,
) -> &'a mut SearchNode<A, Pl>
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.