Moderator: Andres Valverde
must admit that the current WB release I am preparing does not yet send intra-game cores commands
Does this negociation of options before the 'isready' go on before every game, and does Polyglot re-read the .ini file each time? Or is this done only at startup?
Wouldn't it be better to symply call it Polyglot1.5w ? (Perhaps after we are done with beta testing.)
Michel wrote:Does this negociation of options before the 'isready' go on before every game, and does Polyglot re-read the .ini file each time? Or is this done only at startup?
No PG does not reread or resend its options.Wouldn't it be better to symply call it Polyglot1.5w ? (Perhaps after we are done with beta testing.)
I would like to wait for Fonzy Bleumer's agreement. One thing in favor for it to be Polyglot 1.5 is that it then should be trivial to get it into Debian/Ubuntu since Polyglot 1.4 is already there. If it is a fork it is trickier (it would involve convincing a potential sponsor why a fork was useful).
Anyway I made an autoconf'ed version of PG which should make it easier to package it on Linux/BSD. There are no changes in functionality and no changes on Windows. It is at the usual place
http://alpha.uhasselt.be/Research/Algebra/Toga/
F. Bluemers wrote:Still hadn't much time to have look at it so don't wait for me.
BTW imo its better to fix toga than to adapt winboard and polyglot .
* = Hash, type is spin
the value in MB for memory for hash tables can be changed,
this should be answered with the first "setoptions" command at program boot
if the engine has sent the appropriate "option name Hash" command,
which should be supported by all engines!
So the engine should use a very small hash first as default.
H.G.Muller wrote:F. Bluemers wrote:Still hadn't much time to have look at it so don't wait for me.
BTW imo its better to fix toga than to adapt winboard and polyglot .
True, but Toga might be exemplary of what we could expect with other UCI engines. We are creating new protocol here, which we will later be stuck with, so it is worthwile to not paint ourselves into a corner here.
This is an excerpt from the UCI protocol specs:
- Code: Select all
* = Hash, type is spin
the value in MB for memory for hash tables can be changed,
this should be answered with the first "setoptions" command at program boot
if the engine has sent the appropriate "option name Hash" command,
which should be supported by all engines!
So the engine should use a very small hash first as default.
This seems to specify that UCI engines are not required to be able to change their hash size except at startup, and even then they can play hard-to-get by not sending the 'option name hash spin ...' to the GUI.
So it is essential that Polyglot waits sending any 'setoption' from the .ini file to the engine before it has recieved the memory command from WinBoard. Otherwise the memory command might not work on any UCI engine at all, or even crash them.
True, but Toga might be exemplary of what we could expect with other UCI engines
Otherwise the memory command might not work on any UCI engine at all, or even crash them.
H.G.Muller wrote:Well, what worries me is the phrase 'should be answered with the first "setoptions" command at program boot'. This suggest undefined, and possibly disastrous consequences if it would be sent as the second setoption command, even in engines that do define the Hash option. Especially if they already received a 'setoption Hash' before, with another size.
This is not a Toga problem. It is a UCI protocol problem. If we get it wrong, PG ceases to be a WB2UCI adapter, but in stead becomes a WB2XXX adapter, with XXX a protocol that no existing engine understands...
As to your last command: why communicate through files if you can communicate through pipes? This approach of communicating between processes was abandoned with the invention of Unix in the 60s...
Note that the GUI need not send the setoption command when starting the engine for every option if it doesn't want to change the default value.
Return to Winboard and related Topics
Users browsing this forum: No registered users and 4 guests