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.

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
Get step-by-step solutions from verified subject matter experts
