Question: The purpose of this assignment is to: 1. Implement objects with C++. 2. Customize public interfaces by overloading operators for a class. 3. Manipulate instances

The purpose of this assignment is to:

1. Implement objects with C++.

2. Customize public interfaces by overloading operators for a class.

3. Manipulate instances of objects to simulate the game of Mastermind.

After writing the code that implements classes for the objects in your game, write a driver program that uses your class objects to simulate a game of Mastermind. Read the following program requirements and implementation notes carefully:

  1. This program is a console application.
  2. Your program must utilize operator overloading. You may decide on the operators that make the most sense for your application.
  3. Your program should generate a secret code for the user to guess.
  4. The user will enter guesses at the keyboard.
  5. The program will provide feedback as described in the game rules for each player guess.
  6. The player will be allowed a maximum of 10 guesses.
  7. The program should terminate with either a winning or losing message. In the event of a losing message, the secret code should be revealed.
  8. When an error in reading data is detected, your program should alert the user in a helpful manner (think of it as customer service to the user).
  9. Your code must be fully commented but focus on the main programming blocks.

Please use original code, must have a few different .cpp and .h files. Like a guess class and secret code class.

Thank you in advance to any helping.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!