Question: i need help with this using C++ and all the code you need is in this link : https://drive.google.com/drive/folders/1Fvqyu5P41yHLkoDL_J8fIV0eXgg4-ED9 1. First of all, review your
i need help with this using C++ and all the code you need is in this link : https://drive.google.com/drive/folders/1Fvqyu5P41yHLkoDL_J8fIV0eXgg4-ED9





![comment should have (at least): /******$*********************************** FILE: [File name] PURPOSE: [Describe in](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/10/670f652a30f9b_186670f652a1cfb2.jpg)
1. First of all, review your code and document it. a. What is the minimal documentation? Lets consider 4 aspects: Header file comments, function comments, consistent naming (for classes, variables, constants), b. For code {CPP and H files) your header files comment should have (at least): /******$*********************************** FILE: [File name] PURPOSE: [Describe in one single line] AUTHOR(S): [Your name / your team with IDs] PROFESSOR: [Your Lab Professor name] COURSE: [CST8219 LAB Your Lab number] *##*#*****************#*******##*******#**/ c. For Makefiles: ###########if############################### # FILE: [File name] # PURPOSE: [Describe in one single line] if AUTHORS): [Your name / your team with IDs] if PROFESSOR: [Your Lab Professor name] if COURSE: [C5T8219 LAB Your Lab number] imammwucwumxwwmwmwwu d. For specific functions / methods (not required for constructors, destructors, getters and setters): l****$$$$$*********$**t$**********t$$$#t********$$$#t****** * Function name: [Function Name] * Purpose: [Brief description] * Parameters: * [Var Name] = [1 line description] * Return value: [What is supposed to be returned] $$$********$$$$$$*********$**$$$************#$$#$********$*t*l e. For classes. here is the model: /***tt$$$$$$$$$$$$$$$$tt***********t$$$$$$********$$$$$$$$$$$ * Class name: [Class Name] * Purpose: [Brief description] * Properties: * [Propertyl] = [1 line description] * [PropertyZ] = [1 line description] * [...] $$$********t$$$$*********$**$t$************$$$$********$*$*t/ f. Naming: Give appropriate names for functions (when not defined in specification) and variables, that can make clear the purpose of each one. g. Any additional comments that you consider useful about the code, feel free to do it. h. TIP: See prof. Frank video. Remember that good documentation is a required skill during your professional activity, when he talks about \"living document\" and "mindmap" ideas. 2. Now, prove that you can use Git: create a branch called Lab3. a. Open git bash and navigate to your project on your hard drive. b. In git bash. type "git branch\" to see in which branch you are. c. This means that your current project is the result of applying all the commits in time. d. Type the command: \"git branch Lah3\". e. Type \"git checkout Labs\" so that git will now add commits to the Lab3 path instead. f. Make sure that you are on your week5 branch by typing: \"git branch". 3. There should be a star beside labs. 3. At this time, your class Game (composed by a CPP and a H le) contains some attributes (name. numPl'ayers and timeout) and constructors' methods. Start now doing some modifications: a. When you are passing just some parameters (for instance, the name and the timeout or, simply, the numPlayers), you need to set the others as default values. h. For instance, in your Game.h, you can find: Game::Game(string name, int nPlayers]: Game(name, nPlayers. -1) {} c. Note that with this, previous constructors (using 0, 1 or 2 parameters) can now be removed otherwise, compilation error will appear. 4. Create a new class for Player now (also from CST8219 namespace). The members (properties) are described as follows (to be defined in Player.h): class Player { private: string name: 1/ Game player name int points; // Current points bool isCurrentPlayer; // Indicates if he/she is the current player a. This class must have similar methods from Game (include default constructor): Player(string name = "[Nonamel", int points = 0, heel isCurrentPlayer = false); void printPlayer(); Player setPlayer(string, int, bool); Player(const Player& copy); Player(Player* copy]; b. Implement these methods in the Player.cpp. 5. Now modify the Game to include a list of players: a new private attribute is required: vector
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
