Question: sing Problem 2: Write a program that allows two players to play a simple game called Two-dice Pig. The players take turns rolling two standard


sing Problem 2: Write a program that allows two players to play a simple game called Two-dice Pig". The players take turns rolling two standard (six-sided) dice. The first player to reach a score of 100 wins the game. The rules for each turn are as follows lfneither die is 1.ther smis added to the player's score and the turn ends. . If a single 1 is rolled, the tun ends without adding anything to the player's score. double 1s are rolled, the player's score is reset to zero, and the turn ends. any other double is rolled the dice surn is added to the player's score and the same player rolls again. Your program should provide a GUI interface something like the one shown. When the dice are
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
