Highlights
Assignment Overview
You are required to design and implement a program that requires the user to determine a random sequence of colours chosen by the computer. On each round, the user is asked which colour they think is in each position of the sequence and the program gives them some useful feedback. The user has a limited number of attempts to determine which colour is in each position of the sequence.
This is based on the board game “Mastermind”, which you can play online to better understand how the game works. Note that the assignment is based on but not exactly the same as the board game.
Details of the program requirements can be found in the “Program Requirements” section. The entirety of this program can be implemented in under 125 lines of code (although implementing optional additions may result in a longer program). This number is not a limit or a goal – it is based upon an average quality implementation that includes comments and blank lines. It is simply provided to prompt you to ask your tutor for advice if your program significantly exceeds it.
© Copyright 2026 My Uni Papers – Student Hustle Made Hassle Free. All rights reserved.