bug-gnubg
[Top][All Lists]
Advanced

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

Re: [Bug-gnubg] Missed doubles problem ?


From: Joern Thyssen
Subject: Re: [Bug-gnubg] Missed doubles problem ?
Date: Thu, 4 Sep 2003 19:21:26 +0000
User-agent: Mutt/1.4.1i

On Thu, Sep 04, 2003 at 09:15:58PM +0200, Holger wrote
> 
> >Alternatively, we can make three dividers:
> >
> >Missed doubles around DP: 0% - 60%
> >Missed doubles around CP: 60% - 80%
> >Missed doubles around TG: 80%-100%
> >
> >Perhaps that makes more sense.
> 
> This I like much more. If you don't mind I'll implement this.

No problem, but you have to add a few more elements to statcontext.

> >No, you should compare the value with aarOutput[ 0 ][ OUTPUT_WIN ].
> 
> Just to confirm whether I understood: aarOutput[ 0 ][ OUTPUT_WIN ] should 
> equal arDouble[ OUTPUT_OPTIMAL ] ?

No, the aaarPoints array contains the game winning chance at the various
points, so the test should be something like:

rDPDivider = ...
rCPDivider = ...

if ( aarOutput[ 0 ][ OUTPUT_WIN ] <= rDPDivider )
   /* missed double around DP */

   ...
else if ( aarOutput[ 0 ][ OUTPUT_WIN ] <= rCPDivider )
   /* missed double around CP */

   ...

else
   /* missed double around TG */


and same logic for wrong doubles.

Jørn

Attachment: pgpVV2EYijcjf.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]