Snake game is a well-known example of a classic type of computer game in which the player controls a snake that moves around the playing field and eats different things to keep getting longer. Although it may move in any direction, the snake is unable to move through solid objects or through its own body. The objective of the game is to lengthen the snake as much as possible while preventing it from colliding with any walls or running into itself.

Because players must use their keyboards to control the movement of the snake in Snake, the game is frequently employed as a technique for teaching people how to type. By pressing the right keys at the right time, the player can improve their score and control how the snake moves around the screen.