Hello,
I'm just starting to implement a Go engine and I'm working on supporting the GTP protocol right now. I was wondering about a situation that I don't see addressed in the current draft of the version 2 protocol. What is done with commands such as:
1 boardsize 19 19 2 boardsize 19 this is garbage
It seems the choices are either fail with a syntax error or set the board size to 19 and discard the rest of the line. Has this been discussed before? Was a decision reached?
Thanks you, Colin
Colin Kern wrote:
I'm just starting to implement a Go engine and I'm working on supporting the GTP protocol right now. I was wondering about a situation that I don't see addressed in the current draft of the version 2 protocol. What is done with commands such as:
1 boardsize 19 19 2 boardsize 19 this is garbage
It seems the choices are either fail with a syntax error or set the board size to 19 and discard the rest of the line. Has this been discussed before? Was a decision reached?
Reference implementation (GNU Go) accepts this. But I'd personally prefer this command to fail with error. Strict protocols are generally easier to implement. In any case, if this is not described you can do whatever is easier, since controllers cannot expect predictable results anyway.
Paul