Skip to content

julesser/CppND-Capstone-Snake-Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CPPND: Capstone Snake Game

This is a 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.

In this project I extended a basic version of the Snake Game with additional Features by following the principles I learned throughout the C++ Nanodegree Program (see Rubric Points).

Features

  • Pause/Exit
    • The game now can be paused/resumed using ESC and exit using the q button
  • Power Food
    • Special food types prevent increasing of the snakes velocity
  • Random Obstacles
    • The user can increase the game difficulty by speciying a number of obstacles. These are randomly appearing and lead to a death at collision

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 Points

Loops, Functions, I/O

  • The project demonstrates an understanding of C++ functions and control structures.
  • The project accepts user input and processes the input.

Object Oriented Programming

  • The project code is organized into classes with class attributes to hold the data, and class methods to perform tasks.
  • All class data members are explicitly specified as public, protected, or private.
  • All class member functions document their effects, either through function names, comments, or formal documentation. Member functions do not change program state in undocumented ways.

Memory Management

  • The project makes use of references in function declarations.

Concurrency

  • Due to time constraints, these have not been integrated at this stage.

CC Attribution-ShareAlike 4.0 International

Shield: CC BY-SA 4.0

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.

CC BY-SA 4.0

About

Capstone project of the Udacity C++ Nanodegree Program

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published