Skip to content

CosmcBeta/farming-simulator-csc-122

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Farming Simulator (C++)

This is a repository for my semester long protfolio project for CSC 122. Criteria for each portfolio turn in can be found in the criteria/ directory.

We will use CMake to build executables (e.g. tests, the driver program, the benchmarks, etc.). Additionally, we will use Catch2 for unit testing and benchmarking.

Building Executables With CMake

You can use CMake to compile and build the executables for the project. First, you need to create a build/ directory in the project. The build directory will house all of the compiled files as well as the Makefile for the project. Note that we do NOT check the build/ directory into version control since each person will have to regenerate the executables on their own machine.

mkdir build
cd build

Once you are inside of the build directory, you can run the following command to build all of the executables for the project:

cmake .. && make

Testing the App

Any tests that you define in the tests/ directory must have a corresponding entry in CMakeLists.txt. After you build executables using CMake, you can run the corresponding test files from within the build/ directory.

Running the App

The main.cpp file at the root of the project must have a corresponding entry in CMakeLists.txt. After you build executables using CMake, you can run the driver program from within the build/ directory.

Running Benchmarks

Benchmarking is provided with Catch2. You can write benchmarking assertions alongside test assertions right in your test files.

About

Simple console farming simulator for CSC-122

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published