Question: dice game in java A new round begins. Player 1 rolls a single six-sided die. If they get a 1 , their turn is over.

dice game in java
dice game in java A new round begins. Player 1 rolls a
single six-sided die. If they get a 1 , their turn is

A new round begins. Player 1 rolls a single six-sided die. If they get a 1 , their turn is over. Otherwise, their roll is added to the number of points they've accumulated in the current round. After each roll, Player 1 can either stop and keep the points they've accumulated, or roll again to try and accumulate more points. If they ever roll a 1 , their turn ends, they lose all the points they've accumulated this round, and Player 2 gets to start rolling the die. Round 1 Score: 00 player 1 , it is your turn. You rolled a 6 . You have 6 points. Keep going? (y) n Score: 60 Player 2, it is your turn. You rolled a 3. You have 3 points. Keep going? ( y) y You rolled a 5. You have 8 points. Keep going? (y) n

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!