Skip to content

ialsaud/CppND-Capstone-Snake-Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CPPND: Capstone The Vicious Snake Game

Remenicent to today's world The Vicious Snake Game challenges the player to survive in an environment filled with consumables. The game will test the player's disipline and strategic movements.

Based on the starter repo for the Capstone project in the Udacity C++ Nanodegree Program. The code for this repo was inspired by this excellent StackOverflow post and set of responses.

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.

Rubric Requirements Satisfied

  1. The project demonstrates an understanding of C++ functions and control structures.

This is present throughout the code. Functions and control sturctures were used.

  1. The project reads data from a file and process the data, or the program writes data to a file.

In main.cpp line 22, the game reads the ascii art title from the data folder.

  1. The project accepts user input and processes the input.

In main.cpp line 46, the game reads user input to to play again.

  1. The project uses Object Oriented Programming techniques.

The game impliments the class Food.

  1. Classes use appropriate access specifiers for class members.

The Food class has both public and private variables and functions.

  1. Class constructors utilize member initialization lists.

The Food class utilizes member initialization lists.

  1. Classes abstract implementation details from their interfaces.

The Food class abstracts the food operations allowing for more features such as having mutiple food cells in the map.

  1. Overloaded functions allow the same function to operate on different parameters.

The Food class overloads the foodCell() function line 60 in food.h.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published