what to do with accepted of winboard

Archive of the old Parsimony forum. Some messages couldn't be restored. Limitations: Search for authors does not work, Parsimony specific formats do not work, threaded view does not work properly. Posting is disabled.

what to do with accepted of winboard

Postby Uri Blass » 06 Mar 2004, 23:40

Geschrieben von: / Posted by: Uri Blass at 06 March 2004 23:40:29:

Movei respond to protover by
printf("feature setboard=1 draw=0 analyze=1 ping=1 done=1\n");
Later winboard send it some accepted commands and movei respond with errors.
I heard no complain about it but
I wonder if there is a reason for winboard to send the accepted command.
Do engines do something different based on the question if they get the accepted command?
Uri
Uri Blass
 

Re: what to do with accepted of winboard

Postby Federico Corigliano » 07 Mar 2004, 00:27

Geschrieben von: / Posted by: Federico Corigliano at 07 March 2004 00:27:46:
Als Antwort auf: / In reply to: what to do with accepted of winboard geschrieben von: / posted by: Uri Blass at 06 March 2004 23:40:29:

My engine (and others) ignores the 'accepted' command. This is wrote in Winboard Protocol:
" You may want to code your engine so as to be able to work with multiple versions of the engine protocol. Protocol version 1 does not send the protover command and does not implement the feature command; if you send a feature command in protocol version 1, it will have no effect and there will be no response. In protocol version 2 or later, each feature F that you set generates the response "accepted F" if the feature is implemented, or "rejected F" if it is not. Thus an engine author can request any feature without having to keep track of which protocol version it was introduced in; you need only check whether the feature is accepted or rejected. This mechanism also makes it possible for a user interface author to implement a subset of a protocol version by rejecting some features that are defined in that version; however, you should realize that engine authors are likely to code for xboard and may
not be prepared to have a feature that they depend on be rejected. "
Accepted and rejected commands will be useful in the future, when new feature will be added to WB protocol and you have to know if the GUI have implemented them.
Federico
Movei respond to protover by
printf("feature setboard=1 draw=0 analyze=1 ping=1 done=1\n");
Later winboard send it some accepted commands and movei respond with errors.
I heard no complain about it but
I wonder if there is a reason for winboard to send the accepted command.
Do engines do something different based on the question if they get the accepted command?
Uri
Federico Corigliano
 


Return to Archive (Old Parsimony Forum)

Who is online

Users browsing this forum: Google [Bot] and 19 guests