Programming | COMP1405 |
CA | Carlton University |
Your submission for this assignment must include your full name and your nine-digit student
number as a comment at the top of the source file you submit. All source code files must be written
using the Python 3 programming language.
Submissions that crash (i.e., terminate with an error) on execution will receive a mark of 0.
Officially, the Due Date for this Assignment is:
Friday, November 4, 2022, at 11:59pm EST.
Late Submissions are Accepted Without Penalty Until Sunday, November 6, by 11:59pm EST.
Submissions received after that will not be accepted and will receive a mark of 0.
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:
Table 1. Board Game “Features” to Consider
“Ladder Connections” reaching certain squares advances player to others | “Snake Connections” reaching certain squares returns player to others | “Numbered Tiles” all squares numbered using a pygame.font | “Double Moves” permit a double move on certain conditions |
“Extra Turns” grant an extra turn on certain conditions | “Missed Turns” force a lost turn on certain conditions | “Exact Requirements” players can’t move past the end of the board | “Sorry Collisions” if player lands on other, send it back to start |
1 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.
Select your paper details and see how much our professional writing services will cost.
Our custom human-written papers from top essay writers are always free from plagiarism.
Your data and payment info stay secured every time you get our help from an essay writer.
Your money is safe with us. If your plans change, you can get it sent back to your card.
We offer more than just hand-crafted papers customized for you. Here are more of our greatest perks.
Get instant answers to the questions that students ask most often.
See full FAQ