berserk icon indicating copy to clipboard operation
berserk copied to clipboard

go nodes command doesnt give number of nodes close to requested

Open PavelChess opened this issue 3 months ago • 3 comments

After command go nodes 7000000 the last output of Berserk 13 is:

info depth 26 seldepth 42 multipv 1 score cp 34 upperbound wdl 168 789 43 nodes 5082631 nps 1787141 hashfull 977 tbhits 0 time 2844 pv e2e4 e7e5 info depth 26 currmove e2e4 currmovenumber 1 info depth 26 currmove g1f3 currmovenumber 2 bestmove e2e4 ponder e7e5

Every info packet corresponds to depth value. But because 7000000 nodes are not enough for next depth, the bestline and bestmove are linked to number of nodes of last depth and not to the requested count.

PavelChess avatar Apr 06 '24 19:04 PavelChess

Why do you believe Berserk didn't search 7M nodes in the above? It's last depth print was at 5.08M nodes, then proceeded to search more before stopping (most likely at 7M nodes).

jhonnold avatar Apr 06 '24 20:04 jhonnold

Sone other engines do output of final search result, for example, Stockfish, Komodo Dragon 1, RubiChess-20240112. Their output nodes count usually is little bigger than requested, and output nodes count of Komodo Dragon 1 is exactly as requested.

Then engine doesn't behave like this I suspect that final info string was not updated.

And even if the engine calculated requested number of nodes, GUI will not receive real info.

PavelChess avatar Apr 07 '24 16:04 PavelChess

I will consider supporting this in the future, but it's not a high priority.

jhonnold avatar Apr 08 '24 17:04 jhonnold