Question: Construct a class that must include two methods, one called flipDice(), which should return a random value between 1 and 6 inclusively. The other method

Construct a class that must include two methods, one called flipDice(), which should return a random value between 1 and 6 inclusively. The other method is called play(), which actually initiate the core engine of the game where the players start to play the game. The rules of the game are as below:

Before any of the players starts playing, the order of playing turns must be determined. For that, each player must throw the dice to obtain the largest possible number. In case of a tie between any of the players, the process is repeated only between those players. This process is concluded once the order of playing is determined.

In java please.

Construct a class that must include two methods, one called flipDice(), which

100 FINISH 99 98 97 96 95 94 93 92 91 89 81 90 8788 73 83 84 86 82 85 76 75 80 79 78 77 62 63 61 64 65 74 66 68 72 71 70 69 67 53 51 52 60 59 42 CAS 58 57 43 44 56 45 54 47 46 49 41 40 48 33 50 31 36 39 38 37 35 34 A 32 29 22 27 28 30 21 20 23 24 25 26 17 16 15 18 12 19 14 13 11 2 3 5 6 7 8 9 10 100 FINISH 99 98 97 96 95 94 93 92 91 89 81 90 8788 73 83 84 86 82 85 76 75 80 79 78 77 62 63 61 64 65 74 66 68 72 71 70 69 67 53 51 52 60 59 42 CAS 58 57 43 44 56 45 54 47 46 49 41 40 48 33 50 31 36 39 38 37 35 34 A 32 29 22 27 28 30 21 20 23 24 25 26 17 16 15 18 12 19 14 13 11 2 3 5 6 7 8 9 10

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!