Question: Write a PYTHON Program for the following information related to a game: The game consists of two players taking alternating turns until one player has

Write a PYTHON Program for the following information related to a game:


The game consists of two players taking alternating turns until one player   

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. o If the result is a 1, the player scores no points, and their turn is over. o 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

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

import random def rolldice return randomrandint1 6 def main playerscores 0 0 c... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!