Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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,

 

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.

Step by Step Solution

3.51 Rating (154 Votes )

There are 3 Steps involved in it

Step: 1

To begin I would first choose the grid for my game board I will choose a 72 grid as it is a good bal... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Process Dynamics And Control

Authors: Dale E. Seborg, Thomas F. Edgar, Duncan A. Mellich

2nd Edition

471000779, 978-0471000778

More Books

Students also viewed these Accounting questions

Question

What is UML? What type of modeling is it used for?

Answered: 1 week ago