Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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:

  1. Defining objects found in a real-world scenario.
  2. 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

  1. 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.
  2. 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.
  3. 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.
  4. Each guess must consist of four peg colorsno blanks.
  5. 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:

  1. A .png file that contains your UML diagrams. All diagrams should be in a single file. Call the file MastermindUML.png.
  2. A .png file that contains your flowchart. Your flowchart should be in a single file. Call the file MastermindFlowchart.png.
  3. 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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Big Data Systems A 360-degree Approach

Authors: Jawwad ShamsiMuhammad Khojaye

1st Edition

0429531575, 9780429531576

More Books

Students also viewed these Databases questions

Question

What were the reasons the collective agreement was achieved?

Answered: 1 week ago