Question: JAVA Program 2 : Dice game ( 4 0 points ) : Write a game that you play against the computer that involves each of
JAVA Program : Dice game points:
Write a game that you play against the computer that involves each of you rolling three sized dice.
For each round:
Roll three sided dice and add up the sum.
Have the computer do the same
Whoever has the highest sum wins the round
If there is a tie, there is no winner.
Page of
After each round, print out how many rounds you have won and how many the computer has won.
Program should ask if you want to play another round. Keep playing as long as you answer Y Print "Goodbye" if you answer anything else.
For this program, create a method to roll the three sided dice use Random and return the sum of the rolls. Use this method when you calculate the computer's roll and also when you calculate your roll.
Example:
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
