Question: may you please help me code this in c + + ? please see picture Goal of the game is to update or set a

may you please help me code this in c++?
please see picture
Goal of the game is to update or set a board number to 7
- Game will consist of 3 or more players
- Each player will be given a game number between 1-6
- Your player may select their game number
- Other players' game numbers are randomly chosen
- Each turn a player may add their game number to a board number
- Your player will select the board number
- Other players will select a board number that would make 7 or randomly if not possible.
- Each selection to a board number will increase its value
- If adding that number equals 7 that player receives a point, and the board number resets to 0
- If the board number exceeds 7 the board number will then change to a number between 1-6
- For example, if the board number was 5 and the game number added was 3 the board number will change to 1 instead of 8.
- If the board number was 6 and game number was 4 the board number will change to 3 instead of 10
- Here are the possible scenarios:
-8 changes to 1
-9 changes to 2
-10 changes to 3
-11 changes to 4
-12 changes to 5
- The first player to receive 3 points wins!
How many players:
Please enter your nane: boh
Please select a game number from 1-6: 2
Name: Bob
Score: 0
Gane Number: 2
Name: P2
Score: 0
Game Number: 5
Name: P3
Score: 0
Game Number: 6
Name: Bob
Please select a position on the board:
Bob Updated position 1 to 2
P2 SET 7 on position 0...+1 Point!
P3 Updated position 0 to 6
Name: P2
Score: 0
Game Number: 2
Name: P3
Score: 1
Game Number: 5
8
0
0
Score: 0
Game Number: 6
Positions: 0quad1quad2
Please select a position on the board:
Name: Bob
Name: P2
Name: P3
then on the board:
Score: 2
Score: 2
Score: 1
Game
Number: 2
Game
Number: 5
Game Number: 6
456
Positions: 012
Please select a position on the board: 1
Bob SET 7 on position 1....+1 Point!
P2 Updated position 2 to 4
P3 Updated position 0 to 3
Name: Bob
Score: 3
Game Number: 2
Name: P2
Score: 2
Game Number: 5
Name: P3
Score: 1
Game Number: 6
BOB WINS!
Program should include the following:
Implement encapsulation and abstraction.
Documentation explaining how your program works.
Submit all .h and .cpp files with your code and comments.
may you please help me code this in c + + ?

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!