pub struct UctPolicy {
pub exploration_constant: f32,
}Expand description
A preset implementation of a tree policy, using the UCT formula.
Fields§
§exploration_constant: f32The exploration constant to use.
Implementations§
Trait Implementations§
Source§impl<A, Pl> TreePolicy<A, Pl> for UctPolicywhere
A: GameAction,
Pl: Player,
impl<A, Pl> TreePolicy<A, Pl> for UctPolicywhere
A: GameAction,
Pl: Player,
Source§fn select_child<'a>(
&self,
node: &'a mut SearchNode<A, Pl>,
is_root_player_turn: bool,
) -> &'a mut SearchNode<A, Pl>
fn select_child<'a>( &self, node: &'a mut SearchNode<A, Pl>, is_root_player_turn: bool, ) -> &'a mut SearchNode<A, Pl>
Selects a child node to explore.
Auto Trait Implementations§
impl Freeze for UctPolicy
impl RefUnwindSafe for UctPolicy
impl Send for UctPolicy
impl Sync for UctPolicy
impl Unpin for UctPolicy
impl UnwindSafe for UctPolicy
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more