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 to track the player's positions on the playing board.

4. The playing board has 50 spaces (with 50 being the winning space).

5. 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 player / or do 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 the player is last
12 = Start over

6. A player must roll a double to start.

7. 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.

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

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

10. Depict the players' positions on the screen after each round.

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

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

13. You must use at least three functions. Some function examples could be: Roll dice, check for other player (when moving), display board.

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

15. Depict a Playing Board on the screen and display the Players' position on the board.

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

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

Academic Honesty!
It is not our intention to break the school's academic policy. Posted solutions are meant to be used as a reference and should not be submitted as is. We are not held liable for any misuse of the solutions. Please see the frequently asked questions page for further questions and inquiries.
Kindly complete the form. Please provide a valid email address and we will get back to you within 24 hours. Payment is through PayPal, Buy me a Coffee or Cryptocurrency. We are a nonprofit organization however we need funds to keep this organization operating and to be able to complete our research and development projects.