Question: Write a python program using random library for the following game: You have two dices. Write a function to throw these dices, and turn back

Write a python program using random library for the following game:

You have two dices. Write a function to throw these dices, and turn back the sum of two dices. Using this value check the WIN, LOST, CONTINUE situation using the following rule:

WIN: 5,7,8,10 LOST: 3,6,12 CONTINUE: 2, 4,9,11

If the situation is WIN or LOST program STOPS. If the situation is CONTINUE define the summation as point and continue to throw the dices either 7 (user LOST) or point is come (user WIN).

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!