Project 3 - A Dice Game
Due - Monday, November 20, 2006
The goal of this project is to give you experience with Java
classes, conditionals, and loops. You will implement the program
described in problem PP5.40 of the Lewis and Loftus text. This
will require you to also complete PP4.7.
Implementation Requirements and Hints
- At minimum, your program will implement a class Die, a
class PairOfDice, a class ScoreKeeper that contains
the score of each player, and a class ComputerPlayer that
determines whether the computer will roll again. The logic of the
play can be contained in a driver class, or another class you
design.
Due 1:30PM, Monday November 20, 2006
- Complete and submit your working code. Turn in a hard copy in class and place a copy of your .java files in /home/submit/cs110/username.
- Make sure that each function is well documented. Your documentation should specify the type and function of the input parameters and output.
- Run your program on a variety of inputs ensuring that all error conditions are handled correctly.
Note: No portion of your code may be copied from any other
source including another text book, a web page, or another
student (current or former). You must provide citations for any
sources you have used in designing and implementing your program.
Sami Rollins