Can you REALLY "think forever"? My program has a depth=128 max ply limit. Every program I have looked at has such a limit. What should it do when that limit is reached?Ferdy wrote:Can you claim a draw in analysis mode for engines that implements uci protocol? When the gui sends "go infinite" to the engine, the gui is the boss.hgm wrote:Why should it be wrong to claim an immediate draw in analysis mode, if a draw is the optimal result? Playing a move first seems as wrong to me as reporting a mate in 5 (in analysis only) when you can in fact give a mate in 1, just because "the user likes to have as long a PV as possible in analysis mode"...
So the engine will send,Code: Select all
*go * infinite search until the "stop" command. Do not exit the search without being told so in this mode!
info depth 1 score cp 0 time 10 nodes 100 pv 0000 0000 0000 0000
then the gui will send the stop command, and the engine will reply with
bestmove 0000.
In Arasan's case there are still legal moves, I am not talking about game playing, but in analysis mode.
It really is a shortcoming to demand that an engine send a "move" command always. If you are stalemated or mated, I don't know what you would send. For repetitions/50 move draws, most of us will keep on playing even though we have claimed a draw, but I won't if I am stalemated, as there is nothing I can do, legally.



