Possible bug...
Posted:
05 May 2011, 22:41
by Fermin Serrano
Is This a bug in ICS mode? I set contempt draw score based on rating at start of the game and printing a line with a comment (#) but winboard seens to send a draw offer .....
- Code: Select all
>ICS: \012
2107523 <first : # Draw contemp score set to MG: -30, EG: -15
GameEnds(27, Draw, 5)
>ICS: /
>ICS: draw\012
Re: Possible bug...
Posted:
06 May 2011, 04:08
by H.G.Muller
Are you sure that your engine sends feature debug=1 at startup?
Re: Possible bug...
Posted:
06 May 2011, 08:45
by Fermin Serrano
OK thank you. I didn't take account of that feature. In fact I dont see why it is necessary. Why don't assume always a line with # is a comment independently of the feature notification??? I see it redundant. It is obvious that if I send a line with # it is because I want it to be a comment.
Re: Possible bug...
Posted:
06 May 2011, 10:02
by H.G.Muller
Backward compatibility of the protocol. There might be other GUI implementations that choke on lines starting with '#'. So the engine can negociate with the GUI for their use. If the GUI replies rejected debug in stead of accepted debug, the engine knows that the GUI doesn't implement this feature, and that it should refrain from sending any potentially offensive output, as the '#' won't disarm it.
Some people are still using WinBoard 4.2.7, and the 'Draw' in your message would cause the reported error there, # or no #.