A code for the classic snake game in C++.
The code uses basic C++ concepts like iteration and decision making. The program is divided into functions -
- Prints the area for the snake to move in and the fruit
- Takes input from the user
- Checks if the snake has crashed into its own tail and accordingly increment the snake's length or end the game.