[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-gnubg] Bug in gnubg pubeval code
From: |
Philippe Michel |
Subject: |
Re: [Bug-gnubg] Bug in gnubg pubeval code |
Date: |
Mon, 28 Jan 2019 22:14:13 +0100 |
User-agent: |
Mutt/1.11.2 (2019-01-07) |
On Sat, Jan 26, 2019 at 08:03:33PM -0800, Robert Edgar wrote:
> I think there is a bug in your pubEvalVal() function in
> gnubg-nn/gnubg/eval.c as explained in the attached PDF. If there are men
> on the bar, these are not subtracted from the number of men off and the
> total number of checkers is >15.
I think you are right. "men off the board" in Tesauro's description may
be slightly ambiguous (maybe the bar is not part of the board ?) but his
code sample (if (pos[26]==15) return(99999999. /* all men off, best
possible move */) is not.
FWIW, I tried 100k games against gnubg for each choice, just in case the
fix led to clearly better play, but he difference is insignificant.