A classic Snake game implemented in C++ for the console.
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.
- Simple and intuitive gameplay
- Console-based interface
- Randomly generated food pellets
- Increasing difficulty as the snake grows longer
- Customizable game speed
- Clone the repository and compile the code.
- Run the executable file.
- Use the 'W', 'A', 'S', 'D' keys to move the snake up, left, down, and right, respectively.
- Eat the food pellets (*) to increase your score and length of the snake.
- Avoid hitting the boundaries or the snake's own body.
- Press 'X' to quit the game.