For this assignment you will design and implement a simple board game, and then animate a...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
For this assignment you will design and implement a simple board game, and then animate a random playthrough (using pygame) by two computer-controlled opponents, updating the display after each player's turn. An observer "watching" the game should see the dice values rolled by the current player, and if the game requires additional elements (e.g., "snakes" and "ladders") then these must also be depicted. This assignment will allow you to work with more complex nested looping structures, and will also help you recognize the need for functions (coming soon, but not required here). In order to complete this task, you will need to: choose the grid¹ for your game board from these options²: 42, 56, 72, 90, 110, 132, 156 choose how many (at least 2) and what type of "dice" will be used³ to play your game choose and implement at least two of the board game "features" from Table 1, below ● Your submission for this assignment: ● ● ● ● must be a source code file with filename 'comp1405_f22_#########_assignment_06.py' must use a WHILE loop for the game, terminating when either player reaches the end must draw a checkerboard pattern for your board game using pygame and nested FOR loops must draw the players on the board and use variables to store the location of each player must alternate "turns" between the two players must roll "dice" (using random.randint) each iteration, for the player whose "turn" it is Table 1. "Ladder Connections" reaching certain squares advances player to others "Extra Turns" grant an extra turn on certain. conditions. Board Game "Features" to Consider "Snake Connections" reaching certain squares returns player to others "Missed Turns" "Sorry Collisions" force a lost turn on certain conditions "Exact Requirements" players can't move past the end of the board if player lands on other, send it back to start ...other features might also be acceptable - contact your instructor if you want to try something more complex! "Numbered Tiles" "Double Moves" permit a double move on certain conditions all squares numbered using a pygame.font ¹ Please note that the available options are all "pronic numbers", meaning they can be easily arranged on a rectangular grid. 2 A grid with height or width less than four (e.g., a 1 x 42 grid) is not acceptable; both height and width must be at least four 3 For example, you might use two 6-sided dice (i.e., 2d6), three 4-sided dice (i.e., 3d10), two 2-sided dice (i.e., coins), etc. For this assignment you will design and implement a simple board game, and then animate a random playthrough (using pygame) by two computer-controlled opponents, updating the display after each player's turn. An observer "watching" the game should see the dice values rolled by the current player, and if the game requires additional elements (e.g., "snakes" and "ladders") then these must also be depicted. This assignment will allow you to work with more complex nested looping structures, and will also help you recognize the need for functions (coming soon, but not required here). In order to complete this task, you will need to: choose the grid¹ for your game board from these options²: 42, 56, 72, 90, 110, 132, 156 choose how many (at least 2) and what type of "dice" will be used³ to play your game choose and implement at least two of the board game "features" from Table 1, below ● Your submission for this assignment: ● ● ● ● must be a source code file with filename 'comp1405_f22_#########_assignment_06.py' must use a WHILE loop for the game, terminating when either player reaches the end must draw a checkerboard pattern for your board game using pygame and nested FOR loops must draw the players on the board and use variables to store the location of each player must alternate "turns" between the two players must roll "dice" (using random.randint) each iteration, for the player whose "turn" it is Table 1. "Ladder Connections" reaching certain squares advances player to others "Extra Turns" grant an extra turn on certain. conditions. Board Game "Features" to Consider "Snake Connections" reaching certain squares returns player to others "Missed Turns" "Sorry Collisions" force a lost turn on certain conditions "Exact Requirements" players can't move past the end of the board if player lands on other, send it back to start ...other features might also be acceptable - contact your instructor if you want to try something more complex! "Numbered Tiles" "Double Moves" permit a double move on certain conditions all squares numbered using a pygame.font ¹ Please note that the available options are all "pronic numbers", meaning they can be easily arranged on a rectangular grid. 2 A grid with height or width less than four (e.g., a 1 x 42 grid) is not acceptable; both height and width must be at least four 3 For example, you might use two 6-sided dice (i.e., 2d6), three 4-sided dice (i.e., 3d10), two 2-sided dice (i.e., coins), etc.
Expert Answer:
Answer rating: 100% (QA)
To begin I would first choose the grid for my game board I will choose a 72 grid as it is a good bal... View the full answer
Related Book For
Process Dynamics And Control
ISBN: 978-0471000778
2nd Edition
Authors: Dale E. Seborg, Thomas F. Edgar, Duncan A. Mellich
Posted Date:
Students also viewed these accounting questions
-
In this project, you will design and implement a class that can generate a sequence of pseudorandom integers, which is a sequence that appears random in many ways. The approach uses the linear...
-
In this project, you will design and implement a class called Towers, which is part of a program that lets a child play a game called Towers of Hanoi. The game consists of three pegs and a collection...
-
What is UML? What type of modeling is it used for?
-
QUESTION 17 The moment of a force about a pivot point is; a. The force multiplied by the perpendicular distance fro the pivot point to the direction of the force b. the distance from the pivot to the...
-
Multiple-Choice Questions 1. Which of the following statements is true? a. Under cash-basis accounting, revenues are recorded when earned and expenses are recorded when incurred. b. Generally...
-
A fertilizer company blends silicon and nitrogen to produce two types of fertilizers. Fertilizer 1 must be at least 40% nitrogen and sells for $70 per pound. Fertilizer 2 must be at least 70% silicon...
-
Using what you have learned in this chapter, recommend several precautions that you might take to avoid a tax audit.
-
Businesses incur various costs in selling goods and services. Each business must decide which costs are expenses of the period and which should be included in the cost of the inventory. The following...
-
kindly solve this 6.13 and 6.14 questions showing in the picture. (6-13) You are considering an investment in either individual stocks or a portfolio of stocks. The istorical Realized two stocks you...
-
Consider the following scenario in the hypothetical country of Zootopia: The government budget deficit is $80 billion, total domestic savings are $1.2 trillion, and total domestic investment in...
-
There is a past-due AR Account with XYZ Company at the property. For this account, the Finance manager wants to prevent reservations from being settled to Direct Billing. To enforce this, what action...
-
Oriole Company has 7,900 shares of common stock outstanding. It declares a $2 per share cash dividend on November 1 to stockholders of record on December 1. The dividend is paid on December 31....
-
Biotechtron, Inc., has two research laboratories in the Southwest, one in Yuma, Arizona, and the other in Bernalillo, New Mexico. The owner of Biotechtron centralized the legal services function in...
-
Stock ABC has a beta of 1.3. The risk-free rate is 2% and the market risk premium is 7%. If the CAPM is true, what is the risk premium on the stock?
-
2) During the financial crisis of 2007 to 2008, the Federal Reserve attempted to calm markets by increasing liquidity and serving as a lender of last resort. The U.S. government also bailed out...
-
What is the approximate monthly payment (at the end of the period) required for a $500,000 loan, at 4% APR, over 15 years
-
Conduct your own literature search to find a published study that represents one of the Week 3 approaches. Remember, you may have to broaden your search terms to find an appropriate study. Summarize...
-
Using thermodynamic data from Appendix 4, calculate G at 258C for the process: 2SO 2 (g) + O 2 (g) 88n 2SO 3 (g) where all gases are at 1.00 atm pressure. Also calculate DG8 at 258C for this same...
-
A stirred-tank blending system with a bypass stream is shown in Figure. The control objective is o control the composition of a key component in the exit stream, x4. The chief disturbance variables...
-
A data acquisition system for environmental monitoring is used to record the temperature of an air stream as measured by a thermocouple. It shows an essentially sinusoidal variation after about 15 s....
-
The block diagram of a sampled-data control system is shown in Fig. E. Design a Dahlin controller Gc(z) that is physically realizable and based un a change in set point. The sampling period is ?t = 1...
-
The following information for Great Oaks Furniture, a retail furniture and design firm, relates to Exercises 6 through 11. Perform a horizontal analysis of the balance sheets and income statements...
-
The following information for Great Oaks Furniture, a retail furniture and design firm, relates to Exercises 6 through 11. Perform a vertical analysis of the balance sheets and income statements for...
-
The following information for Great Oaks Furniture, a retail furniture and design firm, relates to Exercises 6 through 11. Calculate earnings per share, the price-eam- m'ssm jngS ratio, the gross...
Study smarter with the SolutionInn App