Question: please write code in python The game consists of two players taking alternating turns until one player has scored 100 points, at which time the
The game consists of two players taking alternating turns until one player has scored 100 points, at which time the game is over. Each turn starts with the player making the choice to play or hold. - If they play, the program generates a random number from 1 to 6 inclusive. The result is examined. If the result is a 1 , the player scores no points, and their turn is over. If the result is any other number, the player adds the number to the player's turn total. - If they hold, their turn points are added to their score, and it becomes the opponent's turn. Pay particular attention to making sure variables are reset at the beginning of each turn. You need to have print statements to let the player know the following information. These are needed every time a player needs to make a decision. - Player l's score - Player 2's score - The current turn total For more information on the Game of Pig consult this website. Note: Make sure you do a lot of testing to ensure your solution is correct
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
