Index:
[thread]
[date]
[subject]
[author]
From: Justin Caton <jmc10@duke.edu>
To :
Date: Tue, 23 Mar 1999 21:52:29 -0500
Re: strategies
I have two things to bring up:
1. It seems that in PigGame.java the following line:
while (myPlayer.getScore() =< PigGame.WINNING_SCORE)
should be changed to:
while (myPlayer.getScore() < PigGame.WINNING_SCORE)
because a score of 100 should win.
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.
thanks,
Justin Caton
Index:
[thread]
[date]
[subject]
[author]