Simulate the game by using the round and trial counters you have established. ● Store a win for Player 1 or Player 2 after each round (indicate a win by a 1 and a loss by a 0). ● Store the cumulative wins of each player after each round (“P1Wins_Talley” and “P2Wins_Talley”). I am trying to simulate a dice rolling game where players compete to roll two six-sided die and try to get the value based on the round number. For eample if it is round 2, the players are trying to roll snake eyes. I have submitted a file of what I have so far. Not sure if I should begin the simulation with a loop or while and if statments. How should I approach the simulation? Thank you.
Simulate the game by using the round and trial counters you have established.
● Store a win for Player 1 or Player 2 after each round (indicate a win by a 1 and a loss by a 0).
● Store the cumulative wins of each player after each round (“P1Wins_Talley” and “P2Wins_Talley”).
I am trying to simulate a dice rolling game where players compete to roll two six-sided die and try to get the value based on the round number. For eample if it is round 2, the players are trying to roll snake eyes. I have submitted a file of what I have so far. Not sure if I should begin the simulation with a loop or while and if statments. How should I approach the simulation? Thank you.
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 4 images
Thank you so much. One final question I have is similar to the round counter, can i make a trial counter to count the amount of rolls it takes until a player reaches the target.