Skip to content

mahtt/CppND-Capstone-Snake-Game

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CPPND: Capstone Snake Game Example

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.

Additions to the starter code

The main addition I made to the snake game is storing the high score. If the current user has the new high score, the program asks the user to provide it’s name.

Below are the rubrics my program meets.

Loops, Functions, I/O

Object Oriented Programming

  • The project uses Object Oriented Programming techniques (e.g. appropriate access specifiers for class members, abstraction of implementation details, encapsulation of behavior): player.h

Memory Managmnent

  • The project uses smart pointers instead of raw pointers: main.cpp

Concurrency

  • The project uses multithreading: game.cpp

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

A 2D Snake game using C++ and SDL

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Makefile 34.3%
  • C++ 30.7%
  • C 18.2%
  • CMake 16.8%