Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Success criteria
- Allowing each player to roll a dice twice
- Add the two dice tighter for each player to determine their score
- Add extra 10 points to the total score of each player if their total is an even number
- Subtract 5 points from the total score of each player if their score is an odd number
- If player roll a double, they get an extra roll and add to their score
- In the case where you are subtracting 5 from the total score must not go below zero in which case the total must be set to zero
- Check which player has the highest score in round 1
- Repeat the process (loop) for 5 rounds and check which player has a higher score after 5 rounds
- If the score after 5 rounds is the same, then each player roll a die and player with the higher score wins
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement