Welcome to the Snake Game project! This is a classic Snake game implemented in C++ using procedural programming concepts. Enjoy the nostalgia of the retro Snake game with modern enhancements.
The Snake Game is a simple game where the player maneuvers a snake to eat food, growing in size with each meal. The game ends if the snake collides with itself or the walls.
- Classic Snake gameplay
- Simple and intuitive controls
- Increasing difficulty with snake growth
- Score tracking
To run the Snake Game on your local machine, follow these steps:
- Clone the repository:
git clone https://github.com/hamdashahid/SnakeGame.git
- Navigate to the project directory:
cd SnakeGame
- Build the game using
make
:make
- Run the game:
./snakegame
- Use the arrow keys to control the direction of the snake.
- Eat the food to grow longer.
- Avoid colliding with the walls or the snake's own body.
- Try to achieve the highest score possible!
Click the image above to watch the gameplay video.
© 2023 Hamda Shahid. All rights reserved.