Question
The purpose of this assignment is to practice: Defining objects found in a real-world scenario. Designing an object-oriented software model. This assignment is the first
The purpose of this assignment is to practice:
- Defining objects found in a real-world scenario.
- Designing an object-oriented software model.
This assignment is the first of a two-part assignment that creates a computer version of the game Mastermind. In this game, there are two players: the codemaker (computer) and the codebreaker (user). The codemaker picks a sequence of four pegs, each one being one of any six colors. The codebreaker then tries to guess the exact positions of the colors in the computer's sequence in as few guesses as possible. After each guess, the codemaker gives feedback of exact and partial matches as described in the rules, below.
Mastermind Rules
- For each of the pegs in the guess that is the correct color and in the correct position, the codemaker will give one black peg. If a guess scores four black pegs, then the codebreaker has guessed the secret code.
- For each of the pegs in the guess that is a correct color in an incorrect position, the codemaker will give one white peg. Together, there will be no more than four black and white pegs for each move.
- The color sequence can contain pegs of the following colors: red, yellow, green, blue, white, and black. A color can be used any number of times in the sequence. All four pegs of the secret sequence will contain a color; no blanks/empties are allowed.
- Each guess must consist of four peg colorsno blanks.
- The codebreaker has 10 guesses to find the secret sequence.
Begin this assignment by identifying a set of objects for a complete game of Mastermind. If you have difficulty with this step, try describing a game of Mastermind and list all of the nouns and verbs in your description. Once you are satisfied with your objects, begin constructing your UML diagrams. Next, create a flowchart that models the game logic. Finally, create a Loom video in which you present your work. Your video should not exceed 3 minutes in length. Remember, this assignment is about designing a software system. Implementation details of any kind are not appropriate for this project. Your task is to define a model for a problem that exists in the real-world.
Submit the following:
- A .png file that contains your UML diagrams. All diagrams should be in a single file. Call the file MastermindUML.png.
- A .png file that contains your flowchart. Your flowchart should be in a single file. Call the file MastermindFlowchart.png.
- A text document titled Links.txt that contains a link to your Loom video.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started