Function snake_sdk::move_snake

source ·
pub fn move_snake()
Expand description

Move immediately in the current direction. A snake must move once per tick. If the snake isn’t manually moved, it will be automatically called at the end of the tick. Note that this takes effect on the exact CPU cycle it is called. This means that all snakes do not necessarily move at the same time (you can pick when during the tick the move occurs).