Mastermind Final Project
Objective:
Mastermind is a board game where 1 player arranges coloured pegs and the other player has 10 chances to guess the colour and order of the pegs. In this version, the computer will randomly generate a code of at least 4 colours (or equivalent) with at least 4 pegs and give the user 10 chances to guess the code. When a guess is made, the computer will display to the user which colours are correct.
Mastermind is a board game where 1 player arranges coloured pegs and the other player has 10 chances to guess the colour and order of the pegs. In this version, the computer will randomly generate a code of at least 4 colours (or equivalent) with at least 4 pegs and give the user 10 chances to guess the code. When a guess is made, the computer will display to the user which colours are correct.
Scope:
Meeting the above minimum requirements will earn you a maximum of 80%. If you would like to increase your grade you may choose to upgrade the scope of your project. Here are some ideas.
Meeting the above minimum requirements will earn you a maximum of 80%. If you would like to increase your grade you may choose to upgrade the scope of your project. Here are some ideas.
- You may choose to use a graphical interface/ event driven
- You may choose to use to use more colours
- add other graphics or sound effects
Technical Requirements:
- The computer generated pattern and guesses should be stored in an array. You may use a 2D array if you like, but it is not necessary
- The program should keep track of the user’s guesses and communicate to the user which pegs are correct.
- The program will communicate to the user when a correct guess is correct.
- The program will ask the user if they wish to play again and continue until they answer no
- The program will be modular (use custom functions)
- The program will be FULLY documented and follow coding standards as described in class inluding variable naming standards, spacing and indentation.
Milestones:
1. Project Plan (20 Marks)
2. Analysis & Design (20 Marks)
3. Implementation (Code) (40 Marks)
4. Reflection (20 Marks)
1. Project Plan (20 Marks)
2. Analysis & Design (20 Marks)
3. Implementation (Code) (40 Marks)
4. Reflection (20 Marks)
Submission, Evaluation and Deadlines