fn tick(&mut self, event: Option<Event>) {
        // Handles the event.
        if let Some(curr_event) = event {
            self.full_event(curr_event);
        }

        // Moves the snake.
        self.move_snake();
    }
/// Performs the game's logical operations inside a game tick.
Performs the game's logical operations inside a game tick.
Performs the game ' s logical operations inside a game tick .
fn tick(&mut self, event: Option<Event>) {
        // Handles the event.
        if let Some(curr_event) = event {
            self.full_event(curr_event);
        }
        // Moves the snake.
        self.move_snake();
    }
fn tick ( & mut self , event : Option < Event > ) { // Handles the event. if let Some ( curr_event ) = event { self . full_event ( curr_event ) ; } // Moves the snake. self . move_snake ( ) ; }
Performs the game's logical operations inside a game tick.
Performs the game ' s logical operations inside a game tick .
&mut self
event
Option<Event>
&mut self
event
Option<Event>