Question: Write a Python program to simulate Lucky Sevens game. In the game, the player rolls a pair of dice. If the dots add up to

Write a Python program to simulate Lucky Sevens game. In the game, the player rolls a pair of dice. If the dots add up to 7, the player wins $4; otherwise, the player loses $1. Suppose that, to entice the gullible, a casino tells player that there are lots of way to win: (1, 6), (2, 5), and so on. A little mathematical analysis reveals that there are not enough ways to win to make the game worthwhile; however, because many people's eyes glaze over at the first mention of mathematics, your challenge is to write a program that demonstrate the futility of playing the game. Your program should ask user enter the amount of money that she/he wants to put into the pot, and then play the game until the pot is empty or when user want to stop playing. The program should display the dots total for each roll, amounts user wins or looses for each roll, and when the game ends, display the amount user win or loose for the whole play.

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!