/Snake

cpp project first year of my university

Primary LanguageC++

🐍 Snake Game in C++

A fun and nostalgic Snake Game built in C++! Guide the snake to grow by eating food, but avoid hitting the walls or itself.


🌟 Features

  • Classic Gameplay: Move the snake, eat food, and grow.
  • Dynamic Scoring: Track your score based on how much food you've eaten.
  • Collision Detection: Game-over mechanics if you hit a wall or yourself.

🏗️ Built With

  • C++

🚀 Getting Started

Prerequisites

  • C++ compiler (e.g., GCC)

Installation

  1. Clone the repository:
    git clone https://github.com/MohamedBoghdaddy/Snake.git
  2. Compile and run the code:
    g++ Snake.cpp -o Snake
    ./Snake

🤝 Contributions

Contributions are welcome! Feel free to open issues or submit pull requests to improve the game.


📝 License

This project is licensed under the MIT License.

Enjoy the game! 🕹️