Programming Assignment 03

Bulls and Cows


Due: Friday, September 21st [8:00 AM  for code and 9:00 AM for paperwork]

[Please note, we will likely do in-person grading for this PA during the week of the 24th-25th]


The Task - Implement a simple version of Bulls and Cows.

For this assignment you will build a program that allows the user to play an old game called "Bulls and Cows." 

The Original Rules

If you have questions about these rules, PLEASE talk to me about them before you get too far into the assignment.


Your Assignment

Your goal this week is to come up with a text-based version of Bulls and Cows that follows the following parameters.

Make sure that your program provides this basic functionality.

Furthermore, you should design and implement your game in an object-oriented fashion. It IS completely possible to create this game so that it exists in only class.  However, that is problematic for several reasons.  First, the code simply is tough to write this way.  Second, as we discussed in session 7 and session 8, that probably makes the code very difficult to modify.  You should keep in mind that other variations of the game are possible and, whenever possible, you should design your program so that changes to the game would require few and localized changes.  For example, while you are not required to implement the code for this, keep in mind what it would require to modify your game so that

Again, you are not required to implement a program that provides these features, but you should should design your program with future extensions in mind.

My SUGGESTION (not a requirement) is that you follow the Model-View-Controller pattern that we discussed in session10.


Deliverables

By the due date and time, submit the files:

via the electronic submission system.  You will also need to prepare your documentation packet following the homework collection policies.