fn win_size(&self) -> usize {
        let x = usize::from(self.bounds.max.x + 1 - self.bounds.min.x);
        let y = usize::from(self.bounds.max.y + 1 - self.bounds.min.y);

        // Mean(x,y)/2
        (x + y) / 4
    }
/// Computes the size of the snake when the player wins.
Computes the size of the snake when the player wins.
Computes the size of the snake when the player wins .
fn win_size(&self) -> usize {
        let x = usize::from(self.bounds.max.x + 1 - self.bounds.min.x);
        let y = usize::from(self.bounds.max.y + 1 - self.bounds.min.y);
        // Mean(x,y)/2
        (x + y) / 4
    }
fn win_size ( & self ) -> usize { let x = usize :: from ( self . bounds . max . x + 1 - self . bounds . min . x ) ; let y = usize :: from ( self . bounds . max . y + 1 - self . bounds . min . y ) ; // Mean(x,y)/2 ( x + y ) / 4 }
Computes the size of the snake when the player wins.
Computes the size of the snake when the player wins .
&self
&self