Skip to content

sunidhi270/Snake_Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Snake_Game

A simple snake game implemented using C++

The player controls a snake that moves around the screen, trying to eat fruit and avoid colliding with walls or its own tail.

RULES OF THE GAME:

  1. Don’t hit a wall and don’t bite your own tail.

  2. Crashing into a wall or your tail will end the game immediately.

  3. 10 points will be added to the player’s score for eating the fruit (@).

  4. The player’s total score is calculated based on the number of fruits the snake consumed.

  5. The length of the snake will be increased after eating the fruits.

  6. Use w, a, s, d to move the snake UP, LEFT, DOWN, and RIGHT, respectively.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages