[computer-go] Strangest C++ problem yet

Peter Drake drake at lclark.edu
Sat Sep 2 11:32:34 PDT 2006


Good point, although it's still broken. It's not that it isn't happy  
with what my program is outputing -- I'm not getting any output at all.

Next suggestion?

Peter Drake
Assistant Professor of Computer Science
Lewis & Clark College
http://www.lclark.edu/~drake/




On Sep 2, 2006, at 11:25 AM, Gunnar Farnebäck wrote:

> Peter wrote:
>> void acknowledge(const string message = "") {
>> 	if (commandID >= 0) {
>> 		cout << "=" << commandID << " " << message << endl;
>> 	} else {
>> 		cout << "= " << message << endl;
>> 	}
>> }
>>
>> This works fine from the command line and through glGo, but it chokes
>> for gogui, Goban, and kgsGtp. Specifically, gogui complains that the
>> program never responds to the "name" command.
>>
>> Now here's the really strange part: if I change that last line to
>>
>> 		cout << "Acknowledging " << message << endl;
>>
>> it DOES produce output, although of course it's not a proper GTP
>> response.
>>
>> Again, either version behaves as expected on the command line or
>> through glGo.
>
> Unless "message" is already newline-terminated you need to add one
> more newline.
>
> /Gunnar
> _______________________________________________
> computer-go mailing list
> computer-go at computer-go.org
> http://www.computer-go.org/mailman/listinfo/computer-go/

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://computer-go.org/pipermail/computer-go/attachments/20060902/34a2910e/attachment.htm


More information about the computer-go mailing list