Skip to content

xiongyu1988/finalProject

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CPPND: Capstone Snake Game Example

This is improved version of Snake 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.

What have been included:

  1. created readParameter class to read and extract numMountains from a .txt file
  2. created Mountain class to place mountain icon in the game
  3. created boundary in the game, if snake hit the boundary the game will stop

Loop, Function, I/O

  • The project reads data from a file and process the data, or the program writes data to a file.
  • The project uses data structures and immutable variables.

Object Oriented Programming

  • One or more classes are added to the project with appropriate access specifiers for class members.
  • Class constructors utilize member initialization lists.
  • Classes abstract implementation details from their interfaces.

Memory Management

  • The project makes use of references in function declarations.
  • The project uses destructors appropriately.
  • The project uses smart pointers instead of raw pointers.

Concurrency

  • The project uses multithreading.
  • A promise and future is used in the project.

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

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published