Question: Write a piece of Python code to simulate playing the game below. Explore how the average score depends on the number of dice rolls. Discuss
Write a piece of Python code to simulate playing the game below. Explore how the average
score depends on the number of dice rolls. Discuss your findings.
Consider a dice game with the following rules:
All players start with 10 points
A dice is rolled, and if the number on the dice is 1, 2, 3, 4 or 5, this number is added to each players score. If the number is 6, the score off all players is reduced to zero
Before the dice is rolled each player is given the choice of continuing or taking their current score as their final score.
This process is repeated until a 6 is rolled and the game ends. All players still playing at this point receive zero as their final score.
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
