Play sorry with two die and one peg move your piece down


Assignment

INTRODUCTION: Play sorry with two die, and one peg. Move your piece down the board first. But rolling certain numbers will change the pace of the game.

ASSIGNMENT:Sorry Game

1.To play "Sorry", you'll need to create up to Four players.

Prompt the user for the number of players (2-4).

2.Create two die for the players to roll.

3.Create an Array to be used as the playing board, having 50 spaces.

With 50 being the winning space.

4.Now the dice have special conditions:

2 = Move two spaces
3 = Move three spaces
4 = Move back one space.
5 = Move five spaces.
6 = Move six spaces.
7 = Swap spots with the leading layer / or nothing if player is in lead.
8 = Move Eight spaces.
9 = Move nine spaces.
10 = Move ten spaces.
11 = Swap spots with the last player / or do nothing if player is last.
12 = Start Over

5. A player must roll a double to start.

6. If a player lands on the same space as another, the other player must return to the beginning.

Example: If P1 lands on a space where P3 is, P3 would go back to the start.

7.A player must roll an EXACT number to enter the winning space.

8.Use a random Generator to "roll" the dice, the user must press enter to roll.

9.Once a player finishes, create a winning message announcing the winner.

10.Then ask the user if they would like to play again.

11.You must use at least three functions. Some function examples could be:

Roll dice, check for other player (when moving), display board.

12. Display the status/location of the players between sets of rolls.

13.Depict aPlaying Boardon the screen and display the Players' position on the board.

(maybe try using a method to create the board and screen each time a player moves)

14.If a player rolls a double, they'll get another roll.

15.If a player rolls two doubles in a row, they Start Over.

Solution Preview :

Prepared by a verified Expert
C/C++ Programming: Play sorry with two die and one peg move your piece down
Reference No:- TGS02293122

Now Priced at $160 (50% Discount)

Recommended (90%)

Rated (4.3/5)