Question: USING PYTHON: You are playing a dice game with your friends. Each player rolls the single dice eight times. The best possible score would be

USING PYTHON:

You are playing a dice game with your friends. Each player rolls the single dice eight times. The best possible score would be to roll all the numbers 1 through 6 within those eight dice rolls. You must roll a 1 to start the sequence otherwise you will lose that round.

CREATE A PYTHON PROGRAM THAT RESEMBLES THIS GAME:

This program must contain 2 loops and an IF structure. This program is an example of sequencing.

You will need to randomly generate a number 1 through 6 for each of the eight dice rolls. The program needs to have the ability to run multiple times.

THE PROGRAM SHOULD DISPLAY:

# Enter the number of players

# Enter the number of rounds

First Player

You have rolled......

1 3 3 4 2 1 3 1 #Randomly generated sample

----------------------

Verifying Sequence......

dice roll 1 = 1

dice roll 4 = 2

dice roll 2 = 3

dice roll 4 = 4

----------------------

Score = 4

Total Score = ? #Depending on how many rounds

Second Player

You have rolled......

2 3 3 5 2 1 3 5 #Randomly generated sample

----------------------

Verifying Sequence......

dice roll 6 = 1

dice roll 1 = 2

dice roll 2 = 3

----------------------

Score = 3

Total Score = ? #Depending on how many rounds

Third Player

You have rolled......

2 6 3 5 2 4 3 5 #Randomly generated sample

----------------------

Verifying Sequence......

0 points this round

----------------------

Score = 0

Total Score = ? #Depending on how many rounds

First Player has won the game ! #This is an example of only one round played

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Databases Questions!