Index: [thread] [date] [subject] [author]
  From: Jason Grosland <jcg3@cs.duke.edu>
  To  : 
  Date: Tue, 23 Mar 1999 22:25:21 -0500

Re: strategies

On Tue, 23 Mar 1999, Justin Caton wrote:

> 2.  It seems that the playRound function in PigPlayer should be passed
> the total score because otherwise the player will possibly keep playing
> the last round not knowing that he has reached 100 or whatever the
> final score is.

The player has knowledge about its own score-- it keeps track of it.  By a
little arithmetic, it can figure out how close the opponent is to
winning...  Unless I've misunderstood your question.

I'd also recommend that if you consider the winning score relevant to your
strategy, that you use the variable PigGame.WINNING_SCORE rather than the
hardcoded number (100)...

...jason

	     - By all means, think outside of the box.    -
	      - Just put everything back when you're done. -



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