pub fn select_argmax_action(&self) -> Move {
        if let Some(PositionData::Internal(data)) = self.positions.get(&self.root) {
            let argmax_action = data
                .actions
                .iter()
                .max_by_key(|action| action.visits)
                .unwrap();
            argmax_action.action
        } else {
            panic!("Tried to select an action at a leaf or without expanding the root.")
        }
    }
/// Deterministically select the action with the most visits out of the root (which we expect to be best).
Deterministically select the action with the most visits out of the root (which we expect to be best).
Deterministically select the action with the most visits out of the root ( which we expect to be best ) .
pub fn select_argmax_action(&self) -> Move {
        if let Some(PositionData::Internal(data)) = self.positions.get(&self.root) {
            let argmax_action = data
                .actions
                .iter()
                .max_by_key(|action| action.visits)
                .unwrap();
            argmax_action.action
        } else {
            panic!("Tried to select an action at a leaf or without expanding the root.")
        }
    }
pub fn select_argmax_action ( & self ) -> Move { if let Some ( PositionData :: Internal ( data ) ) = self . positions . get ( & self . root ) { let argmax_action = data . actions . iter ( ) . max_by_key ( | action | action . visits ) . unwrap ( ) ; argmax_action . action } else { panic ! ( " " ) } }
Deterministically select the action with the most visits out of the root (which we expect to be best).
Deterministically select the action with the most visits out of the root ( which we expect to be best ) .
&self
&self