For the third version of the game, I switched up gears a bit and split it into 3 files:
- The main file which initializes the game and starts it. (13 lines of code)
- The header file which contains the class definition and the class members' declaration. (26 lines of code)
- The logic file Where the game logic is coded. Also where the class member methods declared in the header file are defined. (351 lines of code)
390 total lines of code
To compile, run g++ rpslsGAME.cpp rpsls.cpp