Question: Needs to be written in Java Introduction One more practice with loops. This program will be a bit more involved that the previous For this

Needs to be written in Java
 Needs to be written in Java Introduction One more practice with
loops. This program will be a bit more involved that the previous

Introduction One more practice with loops. This program will be a bit more involved that the previous For this program, you will create a simulation of the dice game Pig. The objective of the game is for players to gain 100 points before their opponents,further details will be discussed in the tasks In this case the opponent will be the computer Task 1 This game requires two 6 sided dice. You will need to simulate these dice with a random number generator The two dice (random number generators) must Produce values between 1-6 . Have a seed of 140L and 340L, respectively for die one and die two (for testing purposes) Task 2 Now that you have your dice, we can go over the rules you will be playing by Rules For each turn, the players will take turns rolling the two dice If a 1 doesn't appear on either dice, t pass the turn to the other player(choice 1). if a 1 appears on one of the dice, the player gets no points added to their total for that entire turn and it becomes the other player's turn to roll (points earned on previous turns will still be present in their totals) If a player rolls both 1s, the player's turn is over and their total is reset to 0

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!