Skip to content

A simple Snake game built using fundamental programming concepts like arrays, loops, and conditionals. This implementation avoids external libraries or advanced game engines, making it a great project for learning core game development and basic input handling.

Notifications You must be signed in to change notification settings

hamdashahid/SnakeGame

Repository files navigation

Snake Game in C++

Welcome to the Snake Game project! This is a classic Snake game implemented in C++ using procedural programming concepts. Enjoy the nostalgia of the retro Snake game with modern enhancements.

Table of Contents

Introduction

The Snake Game is a simple game where the player maneuvers a snake to eat food, growing in size with each meal. The game ends if the snake collides with itself or the walls.

Features

  • Classic Snake gameplay
  • Simple and intuitive controls
  • Increasing difficulty with snake growth
  • Score tracking

Installation

To run the Snake Game on your local machine, follow these steps:

  1. Clone the repository:
    git clone https://github.com/hamdashahid/SnakeGame.git
  2. Navigate to the project directory:
    cd SnakeGame
  3. Build the game using make:
    make
  4. Run the game:
    ./snakegame

How to Play

  • Use the arrow keys to control the direction of the snake.
  • Eat the food to grow longer.
  • Avoid colliding with the walls or the snake's own body.
  • Try to achieve the highest score possible!

Screenshots

Game Start Game Start Screen

Gameplay Gameplay Screenshot

Game Over Game Over Screen

Screencasts

Watch the game in action: Gameplay Video

Click the image above to watch the gameplay video.

© 2023 Hamda Shahid. All rights reserved.

About

A simple Snake game built using fundamental programming concepts like arrays, loops, and conditionals. This implementation avoids external libraries or advanced game engines, making it a great project for learning core game development and basic input handling.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages