Question: Purpose: A casino is setting up a digital interface for some of the various games. One of these is the dice game craps. You will

 Purpose: A casino is setting up a digital interface for some
of the various games. One of these is the dice game craps.
You will be building the logic for the game as well as
a prototype of the visual display. The rules of the game are:
1. Roll two dice and check the result. If the result is

Purpose: A casino is setting up a digital interface for some of the various games. One of these is the dice game craps. You will be building the logic for the game as well as a prototype of the visual display. The rules of the game are: 1. Roll two dice and check the result. If the result is 2,3 , or 12 , you lose. If the result is 7 or 11 , you win. If the result is anything else, a point is established. 2. If a point is established, reroll the dice until you either roll the point again or roll 7 . If you roll the point, you win. If you roll 7 , you lose. Task: Create a project called Lab1_FirstName_LastName. 1. The program will at least consist of the following methods: - The main method - The rollOneDice method takes no arguments and returns an int i. public static int rollOneDice() ii. Return a random number (1

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!