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: Rod Roark
Subject: Re: [Bug-gnubg] Re: Showing Moves
Date: Tue, 20 May 2003 15:36:45 -0700
User-agent: KMail/1.4.3

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.

------------------------------------------------------------
To GnuBG: external localhost:9999
...
>From FIBS: rodr wants to resume a saved match with you.
To FIBS: join rodr
>From FIBS: Type 'join rodr' to accept.
>From FIBS: You are now playing with rodr. Your running match was loaded.
To FIBS: board
>From FIBS: turn: ParlorBot.
>From FIBS: unlimited matchlength
>From FIBS: points for ParlorBot: 5
>From FIBS: points for rodr: 3
>From FIBS: 
>board:You:rodr:9999:5:3:0:-1:0:-1:2:0:4:0:2:0:0:0:-4:5:0:0:0:-4:0:-5:0:0:0:0:2:0:-1:6:6:0:0:1:1:1:0:-1:1:25:0:0:0:0:0:4:5:0:0
To Ext: 
board:You:rodr:99:0:0:0:-1:0:-1:2:0:4:0:2:0:0:0:-4:5:0:0:0:-4:0:-5:0:0:0:0:2:0:-1:6:6:0:0:1:1:1:0:-1:1:25:0:0:0:0:0:4:5:0:0
>From Ext: 24/18 24/18 13/7 13/7
To FIBS: move 1-7 1-7 12-18 12-18
>From FIBS: ** You can't move from 1 in your second move.
------------------------------------------------------------

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).

-- Rod

On Tuesday 20 May 2003 08:00 am, Joern Thyssen wrote:
> On Tue, May 20, 2003 at 07:46:09AM -0700, Rod Roark wrote
>
> > On Tuesday 20 May 2003 07:18 am, Joern Thyssen wrote:
> > > On Tue, May 20, 2003 at 07:06:46AM -0700, Rod Roark wrote
> > >
> > > > On Tuesday 20 May 2003 12:28 am, Joern Thyssen wrote:
> >
> > [snip]
> >
> > > > > There is no code for resignations...
> > > >
> > > > That would be a problem.  Is there a workaround?
> > >
> > > Workaround no. 1: reject all resignations
> >
> > Can gnubg resign when using an external controller?
>
> No, but I guess your code is something like:
>
> get FIBS board from fibs
> pass FIBS board to external gnubg
> send returned command to fibs
>
>
> The word-around code is:
>
> get FIBS board from fibs
> if isResignation(Fibs board)
>    send "kibitz I'm sorry, I can't handle resignations yet :-(" to fibs
>    send "reject" to fibs
> else
>    pass fibs board to external gnubg
>    send returned command to fibs
>
> Jørn





reply via email to

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