Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Add a display function that passes in the list of dice and displays their values by calling the Die's string method. Create a function that's
Add a display function that passes in the list of dice and displays their values by calling the Die's string method. Create a function that's called takeTurn that passes in the list of dice, rolls each of the dice, displays their values by calling the display function you wrote, determines if the player met any of the win conditions using the functions you wrote, and then returns the points back to the main function where it is added to their point total Display a running sum of their points and ask the player if they want to continue playing after every roll, display their final points when they decide to quit.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started