Computers and Technology
Computers and Technology, 21.04.2020 17:38, pedro48

Python

The goal of this assignment is to build a simulation of a popular children’s dice game named Beat That. Beat That is an educational game in which children learn strategic thinking and the concept of place value. While the rules of the game can be flexible, we will be playing a basic version in which 2 players (Player A and Player B) are rolling 2 dice in a 5-round game.

Game play is based on rounds. In each round, players take a turn in which they roll 2 dice. After rolling the dice, the player decides how to use the two dice values to form a 2-digit number. The goal is to arrange the digits so that they form the highest number possible. Since you are developing your computer programming skills rather than your number literacy skills, your program will automatically make the choice for the player – choosing the highest of the two possible combinations as the player’s number choice for that round. In choosing for the player in this manner you are simulating the play of expert player of Beat That rather than simulating the play of a novice.

At the close of the round, your program will compare players’ number choices for that round to determine the round scoring. The player with the highest number choice wins the round. There are 3 possible scoring outcomes of a round:

• The Players Tie this Round • Player A Wins this Round • Player B Wins this Round

The program will print a message to announce the outcome of the round.

The player who wins a round scores 1 point in the overall game. The player who loses the round does not score a point in the overall game. If the players are tied for the round, then neither player scores a point in the overall game.

When 5 rounds have been played, the program will determine the outcome of the overall game based upon points earned. There are 3 possible outcomes of a game:

• The Players Tie the Game • Player A Wins the Game • Player B Wins the Game

The python program will print a message to announce the outcome of the game. Based upon the description above, the program should implement the functionality for playing a 5-round game of Beat That.

When coding and testing this program, follow the approach that I take in the second part of the tutorial video where I design and build a program that simulates a multi-round Coin Toss game.

When this program is run, the console session should look like this:
Playing round 1 of Beat That... Player A rolls (2, 1) Player A chooses 21 Player B rolls (5, 2) Player B chooses 52 Player B Wins This Round!
Playing round 2 of Beat That... Player A rolls (2, 2) Player A chooses 22 Player B rolls (1, 5) Player B chooses 51 Player B Wins This Round!
Playing round 3 of Beat That... Player A rolls (4, 2) Player A chooses 42 Player B rolls (6, 1) Player B chooses 61 Player B Wins This Round!
Playing round 4 of Beat That... Player A rolls (6, 4) Player A chooses 64 Player B rolls (4, 2) Player B chooses 42 Player A Wins This Round!
Playing round 5 of Beat That... Player A rolls (2, 5) Player A chooses 52 Player B rolls (1, 5) Player B chooses 51 Player A Wins This Round!

7
Game score: Player A has won 2 rounds. Player B has won 3 rounds. Player B Wins This Game!
Before finishing your work . Please remember to apply refactoring and retesting steps

answer
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 00:20, mmmmaaarriiieeee
The open systems interconnection (osi) reference model: defines standards for many aspects of computing and communications within a network. is a generic description for how computers use multiple layers of protocol rules to communicate across a network. defines standards for wireless local area network (wlan) communication protocols. details the advantages and disadvantages of various basic network cabling options.
Answers: 1
image
Computers and Technology, 24.06.2019 01:00, kkruvc
Mastercard managers are motivated to increase (1) the number of individuals who have and use a mastercard credit card, (2) the number of banks and other clents who issue mastercards to customers and/or employees, and (3) the number of locations that accept mastercard payments. discuss how mastercard could use its data warehouse to it expand each of these customer bases.
Answers: 3
image
Computers and Technology, 24.06.2019 11:40, girdwood6678
100 pts. first person gets brainliest
Answers: 2
image
Computers and Technology, 25.06.2019 05:00, Kadyn5
Carmina works at a fast-food restaurant. during the slow afternoon hours, carmina always find projects to keep her busy, like washing all the trays or deep-cleaning the drive-thru area. what workplace habit does carmina show by doing this? efficiency initiative interpersonal skills problem solving
Answers: 1
Do you know the correct answer?
Python

The goal of this assignment is to build a simulation of a popular children’s dice...

Questions in other subjects:

Konu
English, 02.10.2019 01:30
Konu
Mathematics, 02.10.2019 01:30
Konu
Biology, 02.10.2019 01:30