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 and inclusive. The player chooses a number between and 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.
Must use the following declarations in your flowchart or pseudocode.
Declarations
num dice
num dice
num guess
num count
num won
num LIMIT
string PROMPT "Choose a number between and
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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
