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...
-
One of the important features of a camera is the battery life as measured by the number of shots taken until the battery needs to be recharged. The data at left contain the battery life of 31...
-
Write the energy equation for an ideal incompressible fluid, without mass force, steady flow, unit mass, and explain the physical meaning of each.
-
Explain the idea behind the following heuristics: most-constrained variable most-constraining variable least-constraining variable min-conflicts
-
Emarpy Appliance produces all kinds of major appliances. Richard Feehan, the president of Emarpy, is concerned about the production policy for the company's best selling refrigerator. The demand for...
-
How do emergent organizational structures, such as holacracy or self-managing teams, impact traditional hierarchical power dynamics and facilitate innovation ?
-
Open the Amlie Solution.sln file contained in the VB2017\Chap02\Amlie Solution folder. If necessary, open the designer window. Organize the interface so that it follows the GUI design guidelines...
-
Consider the following lottery game played by Pam(consider her as player 1) and Michael consider him as player 2). They have two boxes and each box has three papers inside. On each paper one of three...
-
Suppose you are given two urns, numbered Urn I and Urn II. Contents of Urn I: 5 red, 6 blue, and 10 green marbles Contents of Urn II: 30 red, 20 blue, and 10 green marbles The probability of...
-
This experiment has two mutually exclusive events, \(A\) and \(\bar{A}\), that form a partition of the sample space \(S\). The number of elements in each set is shown in each region. Find the...
-
Suppose the people in a room are divided into two groups as follows: Members: 15 men, 20 women, 0 children Nonmembers: 10 men, 8 women, 12 children A prize is given to one person who is selected at...
-
Use the following tree diagram to answer the questions in Problems 25-30. Which path number represents \(P\left(D \mid A_{2}ight)\) ? A A2 A3 D D D D D D Path number 1 2 3 4 5 6
-
What is the fundamental counting principle?
-
Write a lisp function called split that receives a list and returns a new list whose elements are the first and the second halves of the original list. Sample function outputs are given below: (split...
-
Match the following. Answers may be used more than once: Measurement Method A. Amortized cost B. Equity method C. Acquisition method and consolidation D. Fair value method Reporting Method 1. Less...
-
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 mean free path \(\lambda\) of a molecule of gas is the average distance it travels before collision with another molecule. It is given by \[\lambda=C \frac{m}{ho d^{2}}\] where \(m\) and \(d\)...
-
A rectangular gate (width \(w=2 \mathrm{~m}\) ) is hinged as shown, with a stop on the lower edge. At what depth \(H\) will the gate tip? Water H 0.55 m 0.45 m P3.46 Hinge Stop
-
Gates in the Poe Lock at Sault Ste. Marie, Michigan, close a channel \(W=34 \mathrm{~m}\) wide, \(L=360 \mathrm{~m}\) long, and \(D=10 \mathrm{~m}\) deep. The geometry of one pair of gates is shown;...
Study smarter with the SolutionInn App