Question: 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
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
