Question: Write the following in java while following instructions: In this project, you will write a simple dice game between a user and the computer. Here

Write the following in java while following instructions:

Write the following in java while following instructions: In this project, youwill write a simple dice game between a user and the computer.Here are the rules The user and the computer each roll three(6-sided) dice The computer gets two chances to re-roll. It can picka dice to be re-rolled, and then pick another dice to be

In this project, you will write a simple dice game between a user and the computer. Here are the rules The user and the computer each roll three (6-sided) dice The computer gets two chances to re-roll. It can pick a dice to be re-rolled, and then pick another dice to be re-rolled. Alternatively, it can skip one or both re-rolls. Similarly, the user gets two chances to re-roll. A winner is decided according to the following rules: o If the user has three of a kind, the user wins o If the computer has three of a kind (and the user does not), the computer wins o If the user has two of a kind (and the computer does not have three of a kind), the user wins o If the computer has two of a kind (and the user does not), the computer wins o If no one has a matching pair, then the player with the highest total wins. In case of a tie, the user wins

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!