Skip to content

Latest commit

 

History

History
44 lines (30 loc) · 1.88 KB

README.md

File metadata and controls

44 lines (30 loc) · 1.88 KB

CPPND: Capstone Snake Game Battle Edition

This is the final Capstone Project in the Udacity C++ Nanodegree Program.

The project is a battle version for the classic snake game. There are 6 basic rules.

Rule 1: The snake that eats the food will grow in length, increase its score and speed.

Rule 2: The snake can move straight and diagonal.

Rule 2: The snake that has been hit by another snake will lose its body from the crashing point.

Rule 3: The part of body that has been cut will become food for the opponent.

Rule 4: The snake that hits itself loses the game.

Rule 5: The game is over if two snakes hit each other's head. The one with higher score wins the game.

Rule 6: Who gets the 20 score first will win the game.

Dependencies for Running Locally

Basic Build Instructions

  1. Clone this repo.
  2. Make a build directory in the top level directory: mkdir build && cd build
  3. Compile: cmake .. && make
  4. Run it: ./SnakeGame.