bug-gnubg
[Top][All Lists]
Advanced

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

Re: [Bug-gnubg] Command-line bug ?


From: Christian Anthon
Subject: Re: [Bug-gnubg] Command-line bug ?
Date: Thu, 24 Aug 2006 10:33:07 +0200

On 8/23/06, Jim Segrave <address@hidden> wrote:

I begin to see something interesting. If you run gnubg with a GUI from
an xterm (or, I suppose, a DOS window) and enter the commands Jon
posted, you'll get the erroneous results identical to the CLI version
- this one calls CommandHint() followed by CommandRollout(). In the
GUI if you pop up a Hint window and then select some moves ans ask for
them to be rolled out, you get the correct result. In this case, it
calls ScoreMoveRollout(). The two routines have much in common, so
much so that they need to be merged into a single routine. The logic is
fairly complicated, but I think the cause lies in a failure to
correctly set up the board and the flags needed for a rollout.


Yes, that sounds right. Sharing as much code as possible between the
GUI and the CLI would probably be a good idea here.

I'll leave the code in the present state since it is non-critical and
broken anyway. If you give up I think we should use the patch attached
to the original bug report, and pray that it works. It seemed so.

Christian.




reply via email to

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