Skip to content

adpadillar/cpp-snake

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cpp-snake

This is a simple snake & ladders simulation using OOP in cpp.

Instructions

You can find the instructions for this activity here

Project Structure

PROJECT_ROOT
├── assets/
│   ├──   :
│   └──   :
├── bin/
├── include/
│   ├── Board.h
│   ├── Player.h
│   └── RNG.h
├── src/
│   ├── Board.cpp
│   ├── main.cpp
│   ├── Player.cpp
│   └── RNG.cpp
├── .gitignore
├── build.sh
└── README.md

Compiling

To compile the project, run:

g++ -Iinclude src/*.cpp -o bin/main -o bin/main

./build.sh      # with shell scripts.

Shell Scripts Usage

g++ -Iinclude src/*.cpp -o bin/main -o bin/main && ./bin/main

Running

To run the project, first compile it, and then run:

bin/main

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Contributors