Question: JAVA Program 2 : Dice game ( 4 0 points ) : Write a game that you play against the computer that involves each of

JAVA Program 2: Dice game (40 points):
Write a game that you play against the computer that involves each of you rolling three 6-sized dice.
For each round:
Roll three 6-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 1 of 4
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 6-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:
JAVA Program 2 : Dice game ( 4 0 points ) : Write

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 Programming Questions!