Question: Language is JAVA Task 1 This game requires two 6-sided dice. You will need to simulate these dice with a random number generator. The two


Language is JAVA
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, the values are added to the player's total. They then have the choice to roll again (choice 0) or 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 players 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 O You will need one more random number generator that will determine if the computer(O) or player(1) will go first. This will also be used to simulate the computers choice to either roll again or pass the turn over. The seed for this generator will be 140L Assume valid input from the user. Output should begin with the statement "Welcome of the Game of Pigs" All following user prompts should look similar to: Your turn (current points: 0) You rolled 3 and 2, points earned this turn:5 Press 0 to roll again or 1 to start computer's turn And all computer prompts should look like: Computer's turn (current points: 0) Computer rolled 1 and 4, no points earned and your turn
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
