The goal of this assignment is to build a simulation of a popular children's dice game...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
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. For more information about this and other dice games, see https://funattic.com/dice-games/ B. While the rules of the game can be flexible, we will be playing a basic version in which two players (Player A and Player B) are rolling two dice in a 5-round game. Game play is based on rounds. In each round, players take a turn in which they roll two 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 an 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 five rounds have been played, the program will determine the outcome of the overall game based upon points earned. There are three possible outcomes of a game: The Players Tie the Game Player A Wins the Game Player B Wins the Game The program will print a message to announce the outcome of the game. Exercise 1 Create a program named beat_that_single_round. Based upon the description above, the program should implement the functionality for playing a single round of Beat That. When this program is run multiple times, the console sessions should look like this: Playing round 1 of Beat That... Player A rolls (4, 6) Player A chooses 64. Player B rolls (4, 3) Player B chooses 43. Player A Wins This Round! Player A score is 1 and Player B score is 0 Playing round 1 of Beat That... Player A rolls (2, 6) Player A chooses 62. Player B rolls (6, 3) Player B chooses 63. Player B Wins This Round! Player A score is 0 and Player B score is 1 Playing round 1 of Beat That... Player A rolls (5, 4) Player A chooses 54. Player B rolls (5, 4) Player B chooses 54 Players Tie This Round. Player A score is 0 and Player B score is 0 Exercise 2 Create a program named beat_that_five_round_game. Based upon the description above, the program should implement the functionality for playing a 5-round game of Beat That. 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! Game score: Player A has won 2 rounds.. Player B has won 3 rounds. Player B Wins This Game! 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. For more information about this and other dice games, see https://funattic.com/dice-games/ B. While the rules of the game can be flexible, we will be playing a basic version in which two players (Player A and Player B) are rolling two dice in a 5-round game. Game play is based on rounds. In each round, players take a turn in which they roll two 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 an 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 five rounds have been played, the program will determine the outcome of the overall game based upon points earned. There are three possible outcomes of a game: The Players Tie the Game Player A Wins the Game Player B Wins the Game The program will print a message to announce the outcome of the game. Exercise 1 Create a program named beat_that_single_round. Based upon the description above, the program should implement the functionality for playing a single round of Beat That. When this program is run multiple times, the console sessions should look like this: Playing round 1 of Beat That... Player A rolls (4, 6) Player A chooses 64. Player B rolls (4, 3) Player B chooses 43. Player A Wins This Round! Player A score is 1 and Player B score is 0 Playing round 1 of Beat That... Player A rolls (2, 6) Player A chooses 62. Player B rolls (6, 3) Player B chooses 63. Player B Wins This Round! Player A score is 0 and Player B score is 1 Playing round 1 of Beat That... Player A rolls (5, 4) Player A chooses 54. Player B rolls (5, 4) Player B chooses 54 Players Tie This Round. Player A score is 0 and Player B score is 0 Exercise 2 Create a program named beat_that_five_round_game. Based upon the description above, the program should implement the functionality for playing a 5-round game of Beat That. 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! Game score: Player A has won 2 rounds.. Player B has won 3 rounds. Player B Wins This Game!
Expert Answer:
Related Book For
Posted Date:
Students also viewed these algorithms questions
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
This assignment requires you to complete the 2022 tax reporting for a fictional woman named Anna Smith. Question 1 T1 - step 4 - line 66 This is Anna's taxable income Answer: Question 2 T1 - step...
-
Describe the Economic Analysis of the Valero Energy Corporation. Demonstrate Valero Energy Corporation is susceptible to Macroeconomic outlook both in the U.S.& foreign markets
-
4/9 2 Perform the indicated operation by hand.
-
Wu Ltd. sold 6,000,000, 8%, 20-year bonds on January 1, 2017. The bonds were dated January 1 and pay interest annually on January 1. Wu uses the straight-line method to amortize bond premium or...
-
The City of Central Falls has engaged Robert Cohen, CPA to audit the June 30, 1999 financial statements of the City's Water Department under the GAO's Government Auditing Standards. Cohen's report...
-
A piece of equipment that cost $64,800 and on which $36,000 of accumulated depreciation had been recorded was disposed of on January 2, the first day of business of the current year. For each of the...
-
What is the indicated value of a property to an investor seeking a 12 percent annual return for a property generating $30,000 gross monthly income and having annual operating expenses of $120,000?
-
Let's talk about Brexit and many Scottish attempts to gain independence. In this context, can you contrast trends toward globalism v nationalism? 2. What are the implications of these shifts for the...
-
=== Let r(t) (2,1 t, 4t). Calculate the derivative of r(t) a(t) at t = 8, assuming that a(8)=(-3, -9, 6) and a'(8)=(-2,-2,3) d. dt (t) - a(t)|t-s=
-
Evaluate (g(t)) using the Chain Rule: r(t)=(e, est,-9), g(t) = 8t+2 (9(t))=000
-
Evaluate the limit: lim h-0 r(t + h) -r(t) h r'(t)=000 for r(t)=(t2, sint, -9)
-
10. The cost, in dollars to produce q items is C(q) = 0.07q + 62q + 1500 Find the marginal cost function. b. Find C(40) and C'(40) showing a step of work for each one. Give units with your answers...
-
The operating revenues and expenses of Panawin Enterprises for 2 0 2 1 are below:There are four additional transactions that impact the income statement: Machinery with a balance sheet ( book ) value...
-
You need to Compare and Contrast the essays "The Black Cat" and "Tell Tale Heart"?
-
Several months have passed and the Managing Partner approved and properly filed the Complaint and properly submitted the Request for Production of Documents that you drafted. In fact, it has been 75...
-
Give some examples of how CRM-enabled sales analytics can provide valuable insights at each of these stages of the customer journey: prospect (lead), initial customer contact, engagement with the...
-
Someone says: Our firm focuses on maintaining long-term relationships with our customers. We dont have to do any prospecting. Evaluate this statement.
-
Why do some salespeople not immediately embrace the use of the newest technologies? What are some ways in which a salesperson who is reluctant to adopt new technologies might be influenced to do so?
Study smarter with the SolutionInn App