A simple console-based Snake game implemented in C++ to practice and demonstrate object-oriented programming (OOP) skills.
- Object-oriented design following C++ best practices.
- A classic Snake game experience in the console.
- Arrow key controls for direction.
- Modular code for easy understanding and customization.
To run the Snake game, you need to have:
- Clone the repository: git clone https://github.com/aenon0/Cpp-Snake-Game-OOP-Practice.git
- Compile the code: g++ main.cpp -o SnakeGame
- Run the game: ./SnakeGame
Use the arrow keys (asdw) to control the direction of the snake. The snake will grow when it eats the food. Avoid running into the walls The game ends when you collide with the walls.
##Contributing
- welcome contributions to improve the game or add new features. To contribute, follow these steps: Fork the repository.
- Create a new branch for your feature or fix: git checkout -b feature/your-feature-name.
- Make your changes and commit them: git commit -m 'Add feature'.
- Push to the branch: git push origin feature/your-feature-name.
- Create a pull request on GitHub.