bug-gnubg
[Top][All Lists]
Advanced

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

Re: [Bug-gnubg] Re: Showing Moves


From: Joern Thyssen
Subject: Re: [Bug-gnubg] Re: Showing Moves
Date: Wed, 21 May 2003 20:22:40 +0000
User-agent: Mutt/1.4.1i

On Tue, May 20, 2003 at 03:36:45PM -0700, Rod Roark wrote
> I think I'm seeing a couple of bugs in the external controller
> logic.  Below is output from my testing log.
> 
> The main problem is that in this case GnuBG seems to think
> it has the opponent's checkers.  The board state clearly
> says the player's "color" is -1.  This is NOT consistent; in
> earlier testing things went fine.

All gnubg internal routines assume player 1 is on roll, so for  player 0
(or player -1) we have to swap the board. I've added code for this.
Please update :-)

> Note that I translate the move direction, as GnuBG always 
> reports moves as if its home is 0.
> 
> One additional (minor) problem: GnuBG segfaults if you have
> 9999 as the match length (FIBS uses that for an unlimited
> match).

You need to pass match length 0 for unlimited matches. gnubg only
support matches up to 64 points. It'll return garbage if you pass 99.

Jørn




reply via email to

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