Skip to content

Udacity C++ NanoDegree Project 05: Snake Game Battle Edition

Notifications You must be signed in to change notification settings

smy0428/Snake-Game-Battle-Edition

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Udacity C++ NanoDegree Project 05: Snake Game Battle Edition

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published