Question: Write a program which implements a dice game. Name your program file 'YourUsernameA105.py, e.g. afer023A1Q5.py. The aim of the game is to reach a score

 Write a program which implements a dice game. Name your program
file 'YourUsernameA105.py, e.g. afer023A1Q5.py. The aim of the game is to reach

Write a program which implements a dice game. Name your program file 'YourUsernameA105.py, e.g. afer023A1Q5.py. The aim of the game is to reach a score as close as possible to 100 (but not over 100) in three rounds. Each round consists of throwing five random dice, the user then chooses two of the dice values where the two dice values chosen form a two digit score which is added to the user's current total, e.g., if the user first chooses a dice with the value 3 and then a dice with the value 5, 35 is added to the user's total (the first dice chosen is the tens digit and the second dice chosen is the units digit). The random dice are displayed with one space between each dice, e.g., Your dice: 3 5 341 and to choose the dice the user enters a number 1, 2, 3, 4 or 5 indicating which of the five dice they wish to choose, i.e., the position of the dice (not the value of the dice). This process is repeated three times. Below is the statement which initialises the user's current score: current total = 0

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!