First Project - C++ - "2-in-1" Guessing Game

Hi community,

Here is the link to my C++ project: https://github.com/Al13Wi/2-in-1_GuessingGame

The program files are:
main.cpp
GameFunctionsVariables.cpp
GameFunctionsVariables.h

The code became a little bit longer than expected in order to cover all the scenarios and edge cases but I am open to any suggestions to compress the code :slight_smile:

A question concering uploads to GitHub:
What is the proper way or best practice to upload a multi-file program? For example, is it recommended to upload the whole C++ program folder to GitHub (as I just did with my project) or would it be sufficient to only upload the three files listed above?

Feel free to share any suggestions, recommendations or other feedback. :slight_smile:

Cheers
Alex

@thecil @JesseJames

1 Like

You can only commit the files that are required for the code to be compiled (source files, makefile, other project files and resources…). You can create a .gitignore file to let git know which files to ignore in commits. You can find some basic examples for different projects, and then add other stuff you don’t want.

https://github.com/github/gitignore/blob/master/C%2B%2B.gitignore

1 Like

This is a good insight - and the link is very helpul!

Thanks a lot @Alko89