Computer Chess Club Archives


Search

Terms

Messages

Subject: UCI_AnalyseMode feature

Author: Daniel Mehrmannn

Date: 07:23:34 05/24/05

Go up one level in this thread


On May 24, 2005 at 09:28:17, Thomas Mayer wrote:

>Hi Daniel,
>
>> Well, the new version of UCI support a analyze mode:
>>
>> // if the engine supports the "UCI_AnalyseMode" option and the next search is
>> // supposed to be an analysis, the GUI should set "UCI_AnalyseMode" to true
>> // if it is currently set to false with this engine
>> setoption name UCI_AnalyseMode value true
>
>> Homer support this too, but at the moment there a no gui avaible which
>> support this nice feature.
>
>that's funny, UCI was always thought as stateless protocol and now they
>backinvent states this way ?! :) Well, that it does not work fully without
>states is clear, think about the ponderhit command.
>Anyway, good to know that this feature exists, I will implement that in my
>version of epd2wb -> what I did not understand: So the UCI_AnalyseMode must be
>set before EVERY search which is an analyse ? So it should look like this ?
>
>>ucinewgame
>>isready
><readyok
>>position fen <fen-string>
>>isready
><readyok
>>setoption name UCI_AnalyseMode value true
>>go infinite
><engines info strings
><engines info strings
>>stop
><bestmove <move> [ponder <move>]
>>ucinewgame
>>isready
><readyok
>>position fen <fen-string>
>>isready
><readyok
>>setoption name UCI_AnalyseMode value true
>>go infinite
><engines search infos
><[...]
>

That looks not bad in my eyes. Well, i'm not sure if it right but i don't send a
 ponder move if this feature is enabled. That makes no sense for me. I allso
expect this command as "false" state if homer leave the analyze mode.

But of course thats only my own thoughts. Maybe dieter could make it more
clearer...

daniel



>etc. ?
>
>By the way: The reason why I send an "ucinewgame" before every position is
>simple: just to keep sure that the hash is cleared. Else solutions are not
>reproduceable at all.
>
>Greets, Thomas

I'll just looked in my source what happend with a newgame command:

 if (!strcmp(command, "ucinewgame")) {
     NewGame();
     InitHashTable();
     continue;
 }
I'll reset all things.

A bigger problem is more the handling "set option <x>" while engine thinking:

Fritz8: Make it without any changes.
Arena: Allow it in some special cases (clear hash for example)
S9: Send even a "stop" before the command.

This shows us here is may a unclear state..

daniel



This page took 0 seconds to execute

Last modified: Thu, 15 Apr 21 08:11:13 -0700

Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.