WB-engine authors please note!

Discussion of chess software programming and technical issues.

Moderators: hgm, Rebel, chrisw

Michel
Posts: 2272
Joined: Mon Sep 29, 2008 1:50 am

Re: WB-engine authors please note!

Post by Michel »

Ok, can you then write out the specification of the protocol?
User avatar
hgm
Posts: 27796
Joined: Fri Mar 10, 2006 10:06 am
Location: Amsterdam
Full name: H G Muller

Re: WB-engine authors please note!

Post by hgm »

I have not add the formal desciption of the protocol yet. But it is basically just a one-to-one translation of UCI protocol, leaving out the redundant keywords (upper line UCI, lower line corresponding WB command):

Engine -> GUI:

option name NAME type button
feature option="NAME -button"

option name NAME type check value true
feature option="NAME -check 1"

option name NAME type string value TEXT
feature option="NAME -string TEXT"

option name NAME type spin value N1 min N2 max N3
feature option="NAME -spin N1 N2 N3"

option name NAME type combo value TEXT2 var TEXT1 var TEXT2 var TEXT3
feature option="NAME -combo TEXT1 /// *TEXT2 /// TEXT3"

GUI->engine:

setoption name NAME value VALUE
option NAME VALUE
Michel
Posts: 2272
Joined: Mon Sep 29, 2008 1:50 am

Re: WB-engine authors please note!

Post by Michel »

Why not formally specifying it?

I don't think a post in a forum has enough authority to convince people to implement it.
Michel
Posts: 2272
Joined: Mon Sep 29, 2008 1:50 am

Re: WB-engine authors please note!

Post by Michel »

setoption name NAME value VALUE
option NAME VALUE

Can the engine be assumed to be idle when these commands are sent?
Michel
Posts: 2272
Joined: Mon Sep 29, 2008 1:50 am

Re: WB-engine authors please note!

Post by Michel »

What to with options for which there is no default (this happens often with NalimovPath)?

EDIT: Actually on retrospect I am not sure if this happens. It seems Rybka and
Bikjump set the default for NalimovPath to <empty>.

Maybe having no default is illegal?
Michel
Posts: 2272
Joined: Mon Sep 29, 2008 1:50 am

Re: WB-engine authors please note!

Post by Michel »

option NAME VALUE
This is defective.

Both NAME and VALUE may contain spaces.
Michel
Posts: 2272
Joined: Mon Sep 29, 2008 1:50 am

Re: WB-engine authors please note!

Post by Michel »

b16 sends the options commands.

It doesn't do anything with the options since this has not been clearly specified.

http://alpha.uhasselt.be/Research/Algeb ... ot-release
Michel
Posts: 2272
Joined: Mon Sep 29, 2008 1:50 am

Re: WB-engine authors please note!

Post by Michel »

option NAME VALUE
I would propose

Code: Select all

option NAME -value VALUE
This is most pleasant to implement.
Michel
Posts: 2272
Joined: Mon Sep 29, 2008 1:50 am

Re: WB-engine authors please note!

Post by Michel »

Ok here is a new version of b16

http://alpha.uhasselt.be/Research/Algeb ... t-release/

I didn't bump the version number since this is not automated yet in my build scripts
(I have to change it in 5 places).

I have implemented the option setting command as

Code: Select all

option name -value value
It can be sent at any time. If it is send during a search, PG will stop the search and restart it.
Michel
Posts: 2272
Joined: Mon Sep 29, 2008 1:50 am

Re: WB-engine authors please note!

Post by Michel »

Ok a new version of b16. It is now possible to do

Code: Select all

polyglot -ec <engine command>
Then PG will run without a config file. Great for testing!