On 8/23/06, Jim Segrave <[EMAIL PROTECTED]> 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. _______________________________________________ Bug-gnubg mailing list [email protected] http://lists.gnu.org/mailman/listinfo/bug-gnubg
