[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [computer-go] GTP and KGS
See 3.4 in the specification. I now remember
I had problems too. I somehow thought that just
Sending text is ok. But you need to add at least two LineFeeds (LF).
It really should be a section somewhere early called
"If you do not do this, nothing will work".
If this is not the solution then I am completely clueless.
Here is my code with some comments.
This is what I want to send to the server
SendEnd('Viking', id);
This procedure adds a LineFeed
procedure SendEnd(c: string; id: string);
begin
Send(c + #10, id);
end;
This procedure adds stuff to the beginning and end so the output is
finally "=id Viking[LF][LF]"
procedure Send(c: string; id: string);
var
outstring, tstring: string;
begin
c := '=' + id + ' ' + c + #10;
SendProc(c);
end;
--
Magnus Persson
Center for Adaptive Behavior and Cognition
> -----Original Message-----
> From: Peter Drake [mailto:drake@xxxxxxxxxxxxxxxxx]
> Sent: Mittwoch, 14. Juli 2004 18:23
> To: computer-go@xxxxxxxxxxxxxxxxx
> Subject: Re: [computer-go] GTP and KGS
>
> On Wednesday, July 14, 2004, at 01:41 AM, Persson, Magnus wrote:
>
> > Is "Orego BorderPlayer" the name you send? Then perhaps kgsgtp
> > interpret this as a list of names? Just an idea.
>
> I took out the space and it's still not happy:
>
> Jul 14, 2004 9:21:24 AM org.igoweb.igoweb.client.gtp.GtpClient d
> FINEST: Queued command sent to engine: name
> Jul 14, 2004 9:21:24 AM org.igoweb.igoweb.client.gtp.GtpClient d
> SEVERE: Got malformed response from engine:
> = OregoBorderPlayer
>
> Next suggestion?
>
> Peter Drake
> Assistant Professor of Computer Science
> Lewis & Clark College
> http://www.lclark.edu/~drake/
>
> _______________________________________________
> computer-go mailing list
> computer-go@xxxxxxxxxxxxxxxxx
> http://www.computer-go.org/mailman/listinfo/computer-go/
_______________________________________________
computer-go mailing list
computer-go@xxxxxxxxxxxxxxxxx
http://www.computer-go.org/mailman/listinfo/computer-go/