bug-gnubg
[Top][All Lists]
Advanced

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

Re: [Bug-gnubg] Resignation wrongly accepted by gnubg


From: Jon Kinsey
Subject: Re: [Bug-gnubg] Resignation wrongly accepted by gnubg
Date: Tue, 23 Nov 2004 17:54:58 +0000
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041103 Thunderbird/0.9 Mnenhy/0.6.0.104

Jon Kinsey wrote:

Now I've got this computer working... The code/equites look like this for the resignation

      if (EquityAfterResign(-1) < EquityBeforeResign(2.3))
        AgreeToResignation
      else
        DeclineResignation

At a guess, perhaps the "before resignation" equity should be -2.3?

After a closer look, things are clearer. If the dice haven't been shaken, the position is evaluated (from the current players perspective). If the dice have been shaken the best (0-ply) move is made and then the position evaluated (from the other players perspective).

Clearly the code above in my previous email only applies if the dice haven't been rolled a different calculation is needed for the case with the dice rolled.

Jon

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

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