Question: I need help with this lab for my coding class. Thank you Problem: In this lab, you will be using Visual Studio to implement the

 I need help with this lab for my coding class. Thankyou Problem: In this lab, you will be using Visual Studio to

I need help with this lab for my coding class. Thank you

Problem: In this lab, you will be using Visual Studio to implement the classic game of Craps. Craps is a game of numbers and dice. The challenge is that when the user rolls the dice there are two sets of rules to follow depending on whether the roll is the users first roll to set the point/goal or it is one of potentially many rolls after the point/goal has been set. The rules are detailed below. PART A The rules for the Craps game are below. The Rules THERE ARE A FEW DIFFERENT VARIATIONS OF CRAPS. IN THIS VERSION, THE PLAYER ROLLS TWO DICE, AND THE SPOTS ON THE DICE ARE ADDED TOGETHER. THE PLAYER WINS ON THE FIRST ROLL IF THE DICE SHOW A TOTAL OF 7 OR 11. THE PLAYER LOSES IF THE TOTAL IS 2,3 , OR 12. If ANOTHER NUMBER IS THROWN ON THE FIRST ROLL - FOR EXAMPLE, A 10 - THAT NUMBER BECOMES THE POINT, OR THE GOAL OF SUBSEQUENT TOSSES. THE PLAYER CONTINUES TO ROLL THE DICE UNTLL THE POINT OR A 7 APPEARS. THROWING A TOTAL EQUAL TO THE POINT MEANS THE PLAYER WINS AND THROWING A 7 MEANS THE PLAYER LOSES. THIS IS THE VERSION OF CRAPS USUALLY PLAYED IN CASINOS. Figure 1: A Flowchart for the Game of Craps In this program, you will need to use the Random class to randomly generate 2 numbers to determine what the user rolled on each die ( 2 dice total). When the player clicks on the 'Roll the dice' button the computer will randomly select two numbers. Using these randomly select numbers, it will display two dice representing the correct numbers that were chosen. It will also display the numbers for each die and the total. After rolling the dice, the game status will be displayed by the placement of the puck. A black puck indicates the game is in the come out roll (set roll) state. A white puck indicates a subsequent roll and the point value (or goal). A message indicating a win, loss, or other relevant information should also be displayed. This game should keep score, if a player wins, one should be added to the score and if the player loses, one should be subtracted from the score. The score can be negative. Below is a sample screen shot. You don't have to implement the Craps game exactly as shown as long as it has all of the components described in the lab

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!