snake-velocity-queue

snake-velocity-queue is a variable defined in `snake.el'.
Its value is
nil

  • Automatically becomes buffer-local when set.

Documentation:
This queue stores the velocities requested too quickly by user.
They will take effect one at a time at each clock-interval.
This is necessary for proper behavior.

For instance, if you are moving right, you press up and then left, you
want the snake to move up just once before starting to move left. If
we implemented all your keystrokes immediately, the snake would
effectively never move up. Thus, we need to move it up for one turn
and then start moving it leftwards.