Question: You created a Die class from which you could instantiate an object containing a random value from 1 through 6. Now use the class to
You created a Die class from which you could instantiate an object containing a random value from 1 through 6. Now use the class to create a simple dice game in which the user chooses a number between 2 (the lowest total possible from two dice) and 12 (the highest total possible). The user “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. Save the application as TwoDice3.java.
Step by Step Solution
3.31 Rating (169 Votes )
There are 3 Steps involved in it
import javaxswing public class TwoDice3 public static void mainString args final int HIGH 12 final ... View full answer
Get step-by-step solutions from verified subject matter experts
