Starting from:

$29.99

"Introduction to Computer Science I" Specification for Assignment 06

COMP 1405 A/B/C  − "Introduction to Computer Science I"
Specification for Assignment 06
For this assignment you will design and implement a simple board game, and then animate a random
playthrough of that game by two computer-controlled opponents. This will allow you the opportunity
to work with more complex nested looping structures, and will also help you recognize the need for
functions (coming soon to a future lecture, but not required for this assignment).
In order to complete this task, you will need to:
• choose the grid1 for your game board from these options: 42, 56, 72, 90, 110, 132, 156
• choose how many and what type of "dice" will be used2 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_f21_#########_assignment_06.py'
• must use a WHILE loop for the game, terminating when either player reaches the end
• must draw the grid for your board game using pygame 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. 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
…other features might also be acceptable - contact your instructor if you have any ideas!
1 Please note that the available options are all "pronic numbers", meaning they can be easily arranged on a rectangular grid
2 For example, you might use two 6-sided dice (i.e., 2d6), or one 10-sided die (i.e., 1d10), or three 4-sided dice, etc.

More products