[computer-go] GoGui and python
George Dahl
george.dahl at gmail.com
Fri Aug 24 16:11:27 PDT 2007
He has two consecutive newlines since print adds one unless the print
statement has a comma at the end.
- George
On 8/24/07, Hellwig Geisse <Hellwig.Geisse at mni.fh-giessen.de> wrote:
> 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
>
> _______________________________________________
> computer-go mailing list
> computer-go at computer-go.org
> http://www.computer-go.org/mailman/listinfo/computer-go/
>
More information about the computer-go
mailing list