[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [computer-go] GTP and Tourney in SmartGo 1.4
On Fri, 12 Mar 2004 02:02:40 +0200, Paul Pogonyshev wrote:
> Nick Wedd wrote:
>> Insisting on GTP will exclude most competitors, as they don't support
>> it. I have heard that it is hard to implement, with two line-feeds
>> having a different meaning from one line-feed (my personal opinion is
>> that significant whitespace is a really stupid idea.)
>
> Did you even try to look it at GTP before firing up words like "stupid"?
> Can you explain me why writing
>
> printf("= here is my answer\n\n");
>
> is more difficult than writing
>
> printf("= here is my answer\n");
>
> huh?
Two things,
Firstly there is the issue of DOS/Windows "translated mode" where \n gets
translated into \r\n pairs... I don't know if this will be happening in
this case, but I'd rather not have to worry about it at all.
Secondly, while you are writing the code you want to be able to easily
diagnose when you have made a mistake. -If you make a mistake in passing
some incorrect combinations of end-of-line characters it is going to be
a pain to print out clear diagnostics.
Another thing I don't like about GTP is the fact that the controller does
not have to wait for an answer before sending its next message. I see no
merit in this. It simply makes debugging harder.
Mick.
_______________________________________________
computer-go mailing list
computer-go@xxxxxxxxxxxxxxxxx
http://computer-go.org/mailman/listinfo/computer-go