Sorry! board game project for school.
- To play “Sorry”, you’ll need to create up to Four players. The game will prompt the user for the number of players (2-4).
- Create a structure for ‘players’. The structure consists of the player’s name and their position.
- Create an array that can contain up to four players.
- Create two die for the players to roll.
- The playing board has 60 spaces (with 60 being the winning space).
- The dice have special conditions:
- = Move two spaces
- = Move three spaces
- = Move back one space.
- = Move back three spaces.
- = Move six spaces.
- = Swap spots with the last player / or nothing if player is in last.
- = Move zero spaces (lose a turn).
- = Move nine spaces.
- = Move ten spaces.
- = Swap spots with the leading player / or do nothing if player is in the lead.
- = Start Over
- Create an array to track the number of times each dice value is rolled (number of times a two through twelve was rolled). At the end of the game list the number of times each value was rolled.
- A player must roll a double to start.
- 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.
- A player must roll an EXACT number to enter the winning space.
- Use a random generator to “roll” the dice, the user must press enter to roll.
- Indicate the value of each die, the total of the roll, and the resultant move after each dice roll.
- Depict the players’ positions on the screen after each round.
- Once a player finishes, create a winning message announcing the winner.
- Then ask the user if they would like to play again.
- You must use at least three functions. Some function examples could be: Roll dice, check for other player (when moving), display board.
- Display the status/location of the players between sets of rolls.
- Depict a Playing Board on the screen and display the Players’ position on the board. (Extra Credit) (maybe try using a method to create the board and screen each time a player moves)
- If a player rolls a double, they’ll get another roll (Extra Credit).
- If a player rolls two doubles in a row, they Start Over (Extra Credit).