ICS 111 Homework Assignment H10: Graphical Two Dice Pig

Purpose

We are going to continue our problem-solving education by writing a graphical Two-Dice Pig game. This will help us understand Java graphics, classes, loops, branching, and subroutines.

We will also get more practice using Eclipse to make our programming life easier.

Tasks

1. Create a package named edu.ics111.h10 in your project

This is where we will put all our classes for homework 10.

2. Modify your solution to H07 and H09 to play a graphical game of Two-Dice Pig with two players.

You need to create the following classes:

Your game should look something like:

Bonus

You may use my solution, but if you do you need to add the following functionality to it.

  1. Ask for the player names and use them.

  2. Ask for the number of points to determine who wins and use it.

  3. Inform the players what is going on with each roll.

3. Be sure the give credit to the textbook, internet, Professor Moore, your TA, or who ever you got help from.

Grading Rubric

CriterionExcellent (100%)Satisfactory (75%)Borderline (50%)Unsatisfactory (25%)Poor (0)
Adherence to standards - 2 points
Does it conform to standards in every detail?
No errors. Minor details of the assignment are violated, or poor choices are made where the assignment is unclear. Significant details of the assignment or the underlying program intent are violated, but the program still fulfills essential functions. Significant details of the assignment or the underlying program intent are violated, but the program still fulfills some essential functions. Misses the point of the assignment.
Breakdown (modular design) - 2 points
Does it demonstrate good modular design?
No errors. 1-3 minor errors. > 3 minor errors OR 1 major error. 2 major errors > 2 major error.
Correctness of code - 4 points
Does it work? Does it pass JUnit?
Passes all tests. Works for typical input, may fail for minor special cases. Fails for typical input, for a minor reason. Fails for typical input, for a major reason. No.
Documentation, and style - 2 points
Is it clear and maintainable? Does it pass CheckStyle?
No errors. 1-3 minor errors. > 3 minor errors OR 1 major error. 2 major errors > 2 major error.

Turning in the Assignment

The assignment is due on Friday, November 12th at 11:55pm. You may turn it in early.