CS 111 - Introduction to Computer Science
Homework #6


Due: Friday 3/3 at the beginning of class

0. Familiarize yourself with the Game of Pig. (For browsers with Java applets disabled, you can run the optimal Pig player applet from a Unix terminal window with the command "appletviewer http://cs.gettysburg.edu/projects/pig/piggame.html".)

1. Pig - Hold-at-20 Turn: In file PigTurn.java, implement this specification

2. Pig - Hold-at-20-or-Goal Turn: In file PigTurn2.java, implement this specificationNote: You'll want to copy your PigTurn.java code as a starting point.

3. Pig - Hold-at-20-or-Goal Game: In file PigSolitaireGame.java, implement this specificationNote: You'll want to copy your PigTurn2.java code as a starting point.