There is a game which involves a die with 8 sides. 1 round of this game is equiv
ID: 3695323 • Letter: T
Question
There is a game which involves a die with 8 sides. 1 round of this game is equivalent to a player rolling the die. When the player rolls the die, if it lands on one, two, or eight, the player is down one point; ending the round. When the player lands the die on a four or a seven, his score increases by one point; ending the round. If the die lands on a three five or six, the value of the roll is referred to as a reynad, continuing onto a second phase of the game. He then rolls continuously until the die lands on a four seven or a reynad. If he rolls a four or seven he is down one point and ends the round. If he rolls a reynad, he gains five points and ends the round.
Write java code that goes through ten thousand rounds, displaying the total number of points gained after ten thousand rounds.
Explanation / Answer
The question is not clear .first in the question it was like if the dice rolled 1 or 2 or 8 player down one point.and gains if the dice rolled 4 or 7
3,5,6 are called raynad...
then if the dice rolled 4 or 7 downs one point.if the dice rolled raynad gains 5 points...earlier in the question if the dice rolled 4 or 7 gains one point but later it was like if the dice rolled 4 or 7 down one point...that i didnt understood..if u make it clear ..i can write the program for sure..
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.