Skip to content

This is a classic Snake Game implemented in C++. The game is played on the command line interface, where the player controls a snake and tries to eat food while avoiding collision with the walls or the snake's own body.

Notifications You must be signed in to change notification settings

devesh-y/Snake-Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

Snake-Game

This is a classic Snake Game implemented in C++. The game is played on the command line interface, where the player controls a snake and tries to eat food while avoiding collision with the walls or the snake's own body.

Gameplay Features

The Snake Game includes the following features:

  • Snake Movement: The snake moves in the direction specified by the player (W,A,S,D).
  • Food Generation: The food appears at random positions on the game board.
  • Collision Detection: The game detects collisions between the snake and the walls or its own body.
  • Score Tracking: The player's score is displayed on the screen, increasing whenever the snake eats food.
  • Game Over: When the game ends, the final score is displayed.

About

This is a classic Snake Game implemented in C++. The game is played on the command line interface, where the player controls a snake and tries to eat food while avoiding collision with the walls or the snake's own body.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages