Index: [thread] [date] [subject] [author]
  From: Robert C. Duvall <rcd@boomslang.i-did-not-set--mail-host-address--so-shoot-me>
  To  : 
  Date: 23 Mar 1999 22:15:54 -0500

Re: pig

> I may be mistaken but it seems that in order to implement a "strategy" we
> need to make something similar to the example code in PigGame.java, not
> PigPlayer.java.  Am I understanding this correct?

I don't think so.  All that PigGame does is ask the PigPlayer to play
a round as many times as necessary until the player scores more than
100 points.

The meat of the program is in SimplePlayer's playRound method - how it
plays the round determines how long it will take to finish the game
(try making SimplePlayer's strategy playing two rolls each round
instead of one and see if there is an improvement in the Player's
game).

Another way of putting it is, PigGame is only provided as a sample to
help you test your PigPlayer.  Any changes you make to that file will
not be counted since you will only be submitting your Dice and
PigPlayer classes.  We will call on your PigPlayer from another class
that you may never see.

Hope this helps,
rcd


-- 
Robert C. Duvall
Lecturer, Duke University
rcd@cs.duke.edu


Index: [thread] [date] [subject] [author]