bug-gnubg
[Top][All Lists]
Advanced

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

Re: [Bug-gnubg] Bug in eval.c + fix


From: Jonathan Kinsey
Subject: Re: [Bug-gnubg] Bug in eval.c + fix
Date: Sun, 29 Oct 2006 21:15:23 +0000
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.8.0.7) Gecko/20060909 Thunderbird/1.5.0.7 Mnenhy/0.7.4.0

My fault - I've fixed it.  (I was probably wondering about the second
line when I made the mistake).

Jon

Philippe Michel wrote:
> Could someone check the appended patch in ?
> 
> It fixes a typo in eval.c 1.294 that led to strange results when a
> player has 2 or more men on the bar. See for instance this post in
> rec.games.backgammon :
> 
> Date: Wed, 25 Oct 2006 11:23:49 -0400
> From: Chris Roddy <address@hidden>
> Subject: Re: Is this "blind spot" in GNUBG ? (another)
> Message-ID: <address@hidden>
> 
> Regards,
> 
> Philippe Michel
> 
> 
> *** eval.c.dist    Sun Oct  1 12:41:46 2006
> --- eval.c    Sat Oct 28 15:26:35 2006
> ***************
> *** 1815,1821 ****
>       {
>         int nc = board[ 24 ];
> 
> !       afInput[ 24 * 4 + 0 ] = (nc == 1) ? 1.0f : 0.0f;
>         afInput[ 24 * 4 + 1 ] = (nc >= 2) ? 1.0f : 0.0f;    /* is this
> correct? */
>         afInput[ 24 * 4 + 2 ] = (nc >= 3) ? 1.0f : 0.0f;
>         afInput[ 24 * 4 + 3 ] = nc > 3 ? ( nc - 3 ) / 2.0f : 0.0f;
> --- 1815,1821 ----
>       {
>         int nc = board[ 24 ];
> 
> !       afInput[ 24 * 4 + 0 ] = (nc >= 1) ? 1.0f : 0.0f;
>         afInput[ 24 * 4 + 1 ] = (nc >= 2) ? 1.0f : 0.0f;    /* is this
> correct? */
>         afInput[ 24 * 4 + 2 ] = (nc >= 3) ? 1.0f : 0.0f;
>         afInput[ 24 * 4 + 3 ] = nc > 3 ? ( nc - 3 ) / 2.0f : 0.0f;
> 
> 
> _______________________________________________
> Bug-gnubg mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/bug-gnubg
> 
> 


Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

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