[computer-go] GoGui and python
Hellwig Geisse
Hellwig.Geisse at mni.fh-giessen.de
Fri Aug 24 16:03:08 PDT 2007
Thomas,
On Fri, 2007-08-24 at 17:26 -0500, Thomas Nelson wrote:
> command = raw_input()
> print "= myName\n"
the following is taken directly from the protocol specification:
-------------------------------------------------------------
2.6 Response Structure
If successful, the engine returns a response of the form
=[id] result
Here '=' indicates success, id is the identity number given in the
command, and result is a piece of text ending with two consecutive
newlines.
-------------------------------------------------------------
Please note the "two consecutive newlines".
As others have already pointed out, you have to flush the
output if it is buffered.
Hellwig
More information about the computer-go
mailing list