fn num_visits(&self) -> i32 {
        let child_visits: i32 = self.actions.iter().map(|action| action.visits).sum();
        // NOTE: counting the parent like this is a departure from AlphaZero, but if we don't do
        // it then the prior isn't used for the first action out of a node, which seems wrong.
        child_visits + 1
    }
/// Get the number of times we've evaluated this node or a descendant.
Get the number of times we've evaluated this node or a descendant.
Get the number of times we ' ve evaluated this node or a descendant .
fn num_visits(&self) -> i32 {
        let child_visits: i32 = self.actions.iter().map(|action| action.visits).sum();
        // NOTE: counting the parent like this is a departure from AlphaZero, but if we don't do
        // it then the prior isn't used for the first action out of a node, which seems wrong.
        child_visits + 1
    }
fn num_visits ( & self ) -> i32 { let child_visits : i32 = self . actions . iter ( ) . map ( | action | action . visits ) . sum ( ) ; // NOTE: counting the parent like this is a departure from AlphaZero, but if we don't do // it then the prior isn't used for the first action out of a node, which seems wrong. child_visits + 1 }
Get the number of times we've evaluated this node or a descendant.
Get the number of times we ' ve evaluated this node or a descendant .
&self
&self