Question: CODE IN JAVA: Create a file called DiceGameLastNameFirstName. This will be the driver class for Die. In this file, create instances of die that represent
CODE IN JAVA:
Create a file called DiceGameLastNameFirstName. This will be the driver class for Die. In this file, create instances of die that represent the following two dice.
First Die: sides, values the primary and secondary colors are your two favorite colors, the color of the numbers is gold
Second Die: sides, values: the primary and secondary colors are your two least favorite colors, the color of the numbers is silver
Next, display all of the attributes of each die. Finally, ask the user if they want to play a game. If the user does want to play a game, have them guess which die will be the first to roll a Take turns rolling each die until one of them rolls a displaying the value of each roll for each die. Once a is rolled, tell the user if they won or lost the game and ask if they want to play again.
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
