|
From: | Jon Kinsey |
Subject: | Re: [Bug-gnubg] gnubg-no-gui "external" question: take or drop? |
Date: | Mon, 27 Sep 2004 10:20:27 +0100 |
User-agent: | Mozilla Thunderbird 0.7.2 (Windows/20040707) |
amarganth wrote:
I have a question about the gnubg-no-gui "external" interface. My bot received the following board: board:You:leolaw:3:0:0:0:3:3:4:2:1:-2:2:0:0:0:0:0:0:0:0:-1:0:0:-3:-3:-3:-1:0:-2:0:1:0:0:0:0:2:0:1:0:-1:1:25:0:0:0:0:0:4:6:0:0 (Position ID: d28ZAADT3RGAAQ, MatchID: QQlgAAAAAAAA) Player2 doubles. Now the question is: "take" or "drop"?For asking gnu, I must set the flag 40 (wasdoubled) to 1, to get the right answer. I send the board like that:board:You:leolaw:3:0:0:0:3:3:4:2:1:-2:2:0:0:0:0:0:0:0:0:-1:0:0:-3:-3:-3:-1:0:-2:0:1:0:0:0:0:2:0:1:1:-1:1:25:0:0:0:0:0:4:6:0:0 Hmm. Gnubg-no-gui answers with a "take". That's wrong.
I set up the pos + match id you've given and player 1 is on roll, after setting the turn to player 0, I got the following:
Received: board:p0:p1:3:0:0:0:2:0:1:3:3:3:0:0:1:0:0:0:0:0:0:0:0:-2:2:-1:-2:-4:-3:-3:0:-1:0:0:0:0:2:0:1:0:1:-1:0:25:0:0:0:0:0:0:0:0 Sending response: double So gnubg doubles, this does indeed set flag 40 and here's what happens next: Received: board:p0:p1:3:0:0:0:2:0:1:3:3:3:0:0:1:0:0:0:0:0:0:0:0:-2:2:-1:-2:-4:-3:-3:0:-1:0:0:0:0:2:0:1:1:1:-1:0:25:0:0:0:0:0:0:0:0 Sending response: drop So it seems fine, but the board strings I've got aren't the same as yours. Jon
signature.asc
Description: OpenPGP digital signature
[Prev in Thread] | Current Thread | [Next in Thread] |