pub fn finished(&self) -> bool {
        self.bowls[0..self.size].iter().all(|&stones| stones == 0)
            || self.bowls[self.size..(2 * self.size)]
                .iter()
                .all(|&stones| stones == 0)
    }
/// Determine if a position is finished
Determine if a position is finished
Determine if a position is finished
pub fn finished(&self) -> bool {
        self.bowls[0..self.size].iter().all(|&stones| stones == 0)
            || self.bowls[self.size..(2 * self.size)]
                .iter()
                .all(|&stones| stones == 0)
    }
pub fn finished ( & self ) -> bool { self . bowls [ 0 .. self . size ] . iter ( ) . all ( | & stones | stones == 0 ) || self . bowls [ self . size .. ( 2 * self . size ) ] . iter ( ) . all ( | & stones | stones == 0 ) }
Determine if a position is finished
Determine if a position is finished
&self
&self