[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [pbmserv-dev] Entirely new question from the new guy



On Thu, 30 Jun 2005, Michael Hammond wrote:

> Thanks, that was great.  Now I have a new snag.  I've simplified my
> win-scenario code for testing purposes.  When one player hits the win
> condition, the win isn't reported until the next player makes their move.
> It correctly reports who the winner was, but that next move should not be
> allowed to take place.

You might have to post the IsGameOver function.

You have to return 1 to indicate the game is over, and set the winner
parameter to the name of the winner (or NULL for a draw).
You are not doing "return CurrentPlayer()" on a win, are you?

> Separately (and less importantly) I was getting stack dumps after a win
> because I was tripping over something in the ratings code.  I disabled
> ratings as a band-aid - is there a better fix?

You probably need to create the $PBMSERV/ratings and $PBMSERV/standings
directories.

~ John Williams