Introduction to Computer Science I-COMP 1405/1005

ProgrammingCOMP1405
CACarlton University

Introduction to Computer Science I

Question

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:

  1. choose the grid1 for your game board from these options2: 42, 56, 72, 90, 110, 132, 156
  2. choose how many (at least 2) and what type of “dice” will be used3 to play your game
  3. 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. 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 want to try something more complex!

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.

Calculate the price of your order

Select your paper details and see how much our professional writing services will cost.

We`ll send you the first draft for approval by at
Price: $36
  • Freebies
  • Format
  • Formatting (MLA, APA, Chicago, custom, etc.)
  • Title page & bibliography
  • 24/7 customer support
  • Amendments to your paper when they are needed
  • Chat with your writer
  • 275 word/double-spaced page
  • 12 point Arial/Times New Roman
  • Double, single, and custom spacing
  • We care about originality

    Our custom human-written papers from top essay writers are always free from plagiarism.

  • We protect your privacy

    Your data and payment info stay secured every time you get our help from an essay writer.

  • You control your money

    Your money is safe with us. If your plans change, you can get it sent back to your card.

How it works

  1. 1
    You give us the details
    Complete a brief order form to tell us what kind of paper you need.
  2. 2
    We find you a top writer
    One of the best experts in your discipline starts working on your essay.
  3. 3
    You get the paper done
    Enjoy writing that meets your demands and high academic standards!

Samples from our advanced writers

Check out some essay pieces from our best essay writers before your place an order. They will help you better understand what our service can do for you.

Get your own paper from top experts

Order now

Perks of our essay writing service

We offer more than just hand-crafted papers customized for you. Here are more of our greatest perks.

  • Swift delivery
    Our writing service can deliver your short and urgent papers in just 4 hours!
  • Professional touch
    We find you a pro writer who knows all the ins and outs of your subject.
  • Easy order placing/tracking
    Create a new order and check on its progress at any time in your dashboard.
  • Help with any kind of paper
    Need a PhD thesis, research project, or a two-page essay? For you, we can do it all.
  • Experts in 80+ subjects
    Our pro writers can help you with anything, from nursing to business studies.
  • Calculations and code
    We also do math, write code, and solve problems in 30+ STEM disciplines.

Frequently asked questions

Get instant answers to the questions that students ask most often.

See full FAQ
    See full FAQ

    Take your studies to the next level with our experienced specialists

    Chat
    Hello, we are online 24/7. Leave a message we will reply instantly