Skip to content

Latest commit

 

History

History
8 lines (7 loc) · 364 Bytes

README.md

File metadata and controls

8 lines (7 loc) · 364 Bytes

Snake

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 -

  1. Prints the area for the snake to move in and the fruit
  2. Takes input from the user
  3. Checks if the snake has crashed into its own tail and accordingly increment the snake's length or end the game.