fn make_food(&self) -> (i32, i32) {
        let mut rng = thread_rng();
        let mut x = rng.gen_range(1, self.width - 1);
        let mut y = rng.gen_range(1, self.height - 1);

        while self.snake.bad_touch(&Block { x, y }) {
            x = rng.gen_range(1, self.width - 1);
            y = rng.gen_range(1, self.height - 1);
        }

        (x, y)
    }
/// Create a new tuple representing the X and Y of new food location
Create a new tuple representing the X and Y of new food location
Create a new tuple representing the X and Y of new food location
fn make_food(&self) -> (i32, i32) {
        let mut rng = thread_rng();
        let mut x = rng.gen_range(1, self.width - 1);
        let mut y = rng.gen_range(1, self.height - 1);
        while self.snake.bad_touch(&Block { x, y }) {
            x = rng.gen_range(1, self.width - 1);
            y = rng.gen_range(1, self.height - 1);
        }
        (x, y)
    }
fn make_food ( & self ) -> ( i32 , i32 ) { let mut rng = thread_rng ( ) ; let mut x = rng . gen_range ( 1 , self . width - 1 ) ; let mut y = rng . gen_range ( 1 , self . height - 1 ) ; while self . snake . bad_touch ( & Block { x , y } ) { x = rng . gen_range ( 1 , self . width - 1 ) ; y = rng . gen_range ( 1 , self . height - 1 ) ; } ( x , y ) }
Create a new tuple representing the X and Y of new food location
Create a new tuple representing the X and Y of new food location
&self
&self