[computer-go] Strangest C++ problem yet

Peter Drake drake at lclark.edu
Sat Sep 2 11:17:48 PDT 2006


I'm working on my GTP interface for tomorrow's tournament. Responses  
to GTP commands go through this function:

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.

Does anyone have a clue on this one?

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




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


More information about the computer-go mailing list