gab8192 / Obsidian

An UCI chess engine
GNU General Public License v3.0
32 stars 6 forks source link

go nodes command doesnt give number of nodes close to requested #5

Open PavelChess opened 6 months ago

PavelChess commented 6 months ago

After command go nodes 8000000 the last output of Obsidian 11 is:

info depth 21 multipv 1 score cp 39 nodes 6491707 nps 1872427 tbhits 0 time 3467 pv e2e4 e7e5 g1f3 b8c6 f1b5 a7a6 b5a4 b7b5 a4b3 c6a5 d2d4 e5d4 d1d4 g8e7 e1g1 bestmove e2e4

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