Question: Create a new program in Matlab that allows the user to play 1 tun of Yahtzee and calculates the different Yahtzee scores for his/her chosen

Create a new program in Matlab that allows the user to play 1 tun of Yahtzee and calculates the different Yahtzee scores for his/her chosen 5 dice. The Yahtzee point system has several scoring options, but we are only interested in calculating points for a Full House, Yahtzee, and chance.

Sample test case

Choose seed for Yahtzee simulation: 4

Roll 1 (5 new dice): 6 4 6 5 5

Select dice to keep: y n y y y

Roll 2 (1 new dice): 6 6 5 5 2

Select dice to keep: y y y y n

Roll 3 (1 new dice): 6 6 5 5 6

Score Results:

Full House: 25

Yahtzee : 0

Chance : 28

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!