Skip to the content.

Hungry Serpent Game

Welcome to the Snake Game implemented in C++! This classic arcade game allows you to control a snake as it moves around the screen, eating food and growing longer with each meal. Be careful not to collide with the walls or yourself!

How to Play

Controls

Objective

Scoring

Compiling and Running

To compile and run the game, follow these steps:

  1. Compile the code using a C++ compiler like g++: ```bash g++ -o snake Hungry_Serpent.cpp

  2. Run the compiled program:

    ./snake
    

Requirements