Question: Create the logic for a game that simulates rolling two dice by generating two random numbers between 1 and 6 inclusive. The player chooses a

Create the logic for a game that simulates rolling two dice by generating two random numbers between 1 and 6 inclusive. The player chooses a number between 2 and 12(the lowest and highest totals possible for two dice). The player then rolls two dice up to three times. If the number chosen by the user comes up, the user wins and the game ends. If the number does not come up within three rolls, the computer wins. (5.1,5.2) Must use the following declarations in your flowchart or pseudocode. Declarations num dice1 num dice2 num guess num count num won num LIMIT =6 string PROMPT = "Choose a number between 2 and 12>>" string WIN = "You win!" string LOSE = "You lose!

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!