This class has the main method. It should call playGame
the appropriate number of times and print out statistics to System.out.
You don't have to follow the exact structure I have outlined above (you can have
other methods and classes, for example), but you should at least have the
four classes listed above, and those classes should have only
the instance variables I have listed above.
Remember to practice good programming skills:
- Comment each method and class describing what it does along with any non-obvious
preconditions (things you are assuming to be true when the method starts)
or postconditions (things you know will be true when the method ends).
For example, the playGame method may assume a precondition
that the deck of cards has already been shuffled.
- Indicate special cases in your comments. For example, what does
the deal method return if there are no more cards to be dealt?
- Use meaningful variable names (and method and class names too)
- Test each method individually
- Use private methods where appropriate
Grading
This project will be worth 50 points. It will
be divided up this way:
- 20 points for correct output.
- 10 points for the overall design of your code, including correct
instance variables and having straightforward logic.
- 10 points for understandability. This includes things like naming,
constants, and documentation. Use Javadoc format for
all comments.
- 10 points for good modularity.
Remember to turn in both a paper and an electronic copy of your
project.
Having trouble?
Don't wait until the last minute! Come see me and get
your $80 worth.
Gentle Reminder
Programming assignments, like homework assignments,
are individual
projects. I encourage you to talk
to others about the general nature
of the project and ideas about how to pursue it. However, the
technical work, the writing, and the inspiration behind these
must be substantially your own. If any person besides
you contributes in any way to the project,
you must credit their work on your project.
Similarly, if you include
information that you have gleaned from other published sources, you
must cite them as references.
Looking at, and/or copying, other people's programs or written work is
inappropriate, and will be considered cheating.
Return
to Project Index