Answered step by step
Verified Expert Solution
Question
1 Approved Answer
:Create a game of Shut the Box. When the game is selected, it should do the following: Ask the user to enter the amount of
:Create a game of Shut the Box. When the game is selected, it should do the following: Ask the user to enter the amount of gil they want to risk. Shut the Box is a game played with two dice and 12 tiles numbered 1-12. The object of the game is to turn over all of the 12 tiles. To begin the game, all 12 tiles are turned up. At each turn, the player rolls the two dice. The player has the option of (1) turning over the tile representing the sum of the dice, or (2) turning over one or both of the tiles corresponding to the individual die values. If the player can do neither, then the game is over A normal range for Shut the Box is the game ending with 3-6 tiles left remaining. If the user's game ends with 3-6 tiles left remaining, he wins back his gil. However, if the game ends with 0-2 tiles left remaining, he doubles his gil. If the game ends with 7 or more tiles left over, he loses his gil. Before the user plays a game or places a bet, the amount of money they currently have should be displayed. Users are not allowed to bet what they don't have. Before the user starts a game, ensure they are clear on the rules (display rules) After each round of a game, the user should have the option to keep playing the current game, or return to the menu to choose another game.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started