COMP2111 System Modelling and Design
Hello, dear friend, you can consult us at any time if you have any questions, add WeChat: _0206girl
Submission is through give and should consist of:
1. A single pdf file with typeset answers, maximum size 4Mb. Prose should be typed, not handwritten.
Use of LATEX is strongly encouraged, but not required.
2. A file partner.txt with a single line on the format. z<digits> . This must be the zID of your group partner. For individual submissions, write your own zID.
Submit your work using the web interface linked on the course website, or by running the following on a CSE machine give cs2111 assn1 assn1.pdf partner.txt
This assignment is to be done in pairs. Individual submissions are discouraged, but will be accepted. Only one member of the pair should submit. Work out who will submit ahead of time—duplicate submissions are extremely annoying to sort out.
Late submission is allowed up to 5 days (120 hours) after the deadline. A late penalty of 5% per day will be deducted from your total mark.
Discussion of assignment material with others is permitted, but you may not exchange or view each others’ (partial) solutions. The work submitted must be your own, in line with the University’s plagiarism policy. Note in particular that attempting to pass off AI writing (e.g. ChatGPT output) as your own still
counts as plagiarism.
These problems are themed around the game of Connect Four. Two players, white (# ) and black ( ), take turns dropping discs of their respective colour into columns of a grid, causing the disc to fall down to the lowest unoccupied row in that column. The first player to have four in a row, either horizontally, vertically, or diagonally, wins the game. If neither player has three in a row when the board is full, the game is a draw.
The game is usually played on a 5x7 board, but to make life less tedious we’re shrinking the board to 4x5,and making it Connect Three, where the win condition is three in a row. Here’s an illustration: