Skip to content

Latest commit

 

History

History
34 lines (25 loc) · 1.12 KB

Readme.md

File metadata and controls

34 lines (25 loc) · 1.12 KB

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.