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

Re: [pbmserv-dev] Q: how to make game non-rated?



On Wed, Jun 19, 2002 at 01:35:55PM -0500, Douglas Zander wrote:
> quick question: I am in a hurry.
> how do I program a game to be played but not rated?

> where would I look?   ratings.cpp???

Game::GameOver()

there is the IsRated() function.  Game::IsRated() currently
returns 0 if the game parameters include "-handicap".

You might override this function with Abalone::IsRated() which
would return 0 if the parameters include "-push".  


> thanks
> 
> 
> --
>  Douglas Zander
> 
> 
> 
> To unsubscribe, send a message to esquire@gamerz.net with
> 	unsubscribe pbmserv-dev@gamerz.net
> as the BODY of the message.  The SUBJECT is ignored.
> 

-- 
 /  \__  | Richard Rognlie / Sendmail Ninja / Gamerz.NET Lackey
 \__/  \ | http://www.gamerz.net/rrognlie/    <rrognlie@gamerz.net>
 /  \__/ | No trees were killed in the sending of this message. 
 \__/    | However, a great many instructions were executed.