/snake-cpp

A snake game in C++ (Turbo C)

Primary LanguageC++

Snake Game in C++ 🐍

The snake is moved with the help of 'i', 'j', 'k' and 'l' keys.

  • i -> up
  • j -> left
  • k -> down
  • l -> right

To end or exit the game 'x' key is used.

The objective is to eat as many fruits and score as many points as possible, without killing the snake.

For each fruit eaten by the snake 10 points are scored.

The game ends if the snake gets killed by crossing over itself. The snake can go through a wall and emerge from the opposite wall.

After the game ends, the player’s score is displayed along with previous scores of previous users.

  1. Welcome screen

Welcome screen

  1. Game starts

Game starts

  1. Playing the game

Game

  1. Game over

Game over

  1. Score board

Score board