Question: PLEASE USE PYTHON TO ANSWER THIS QUESTION In the game, the player is allowed to keep any number of the five dice (from zero to

PLEASE USE PYTHON TO ANSWER THIS QUESTION

In the game, the player is allowed to keep any number of the five dice (from zero to all five), and throw the remaining dice again. The player is then allowed to keep any of the five dice and throw the remaining dice yet again. (The player is even allowed to rethrow dice he or she kept on the previous throw.) The best score in the game is called a Yahtzee, which happens when the player obtains the same number on all five dice. For example, the player might throw 2, 2, 4, 5, 6. The player might choose to keep the 2, 2 and throw the other three dice again. In the second throw, the player obtains 1, 2, 3. The player keeps the 2 (making three 2s) and rethrows the remaining two dice. If those dice come up 2, 2, the player has made Yahtzee. Write a program to simulate Yahtzee. Assume the player is trying to achieve Yahtzee. What is the estimated probability of achieving Yahtzee? (Hint: the exact value is approximately 5%.)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!