Skip to content

kushalkumar1362/Snake-Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Snake Game

A classic Snake game implemented in C++ for the console.

Table of Contents


Game Description


This is a simple implementation of the classic Snake game in C++. The game runs on the console and uses the standard input/output streams for user interaction. The game features a snake that can move up, down, left, or right, and eats food pellets to grow longer. The game ends when the snake collides with the boundary or its own body.

Features


  • Simple and intuitive gameplay
  • Console-based interface
  • Randomly generated food pellets
  • Increasing difficulty as the snake grows longer
  • Customizable game speed

How to Play


  1. Clone the repository and compile the code.
  2. Run the executable file.
  3. Use the 'W', 'A', 'S', 'D' keys to move the snake up, left, down, and right, respectively.
  4. Eat the food pellets (*) to increase your score and length of the snake.
  5. Avoid hitting the boundaries or the snake's own body.
  6. Press 'X' to quit the game.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages