Closed amanjpro closed 3 years ago
Or maybe your seldepth gets incremented in QSearch? I don't think seldepth is meant to be incremented by QSearch, but I could be wrong
Or maybe your seldepth gets incremented in QSearch? I don't think seldepth is meant to be incremented by QSearch, but I could be wrong
Hi,
The seldepth in the engine "can't be wrong", because it's purely cosmetic; it means what you as the programmer want it to mean. In my case, seldepth is the depth in ply the engine reaches at maximum, anywhere in the search tree. This is influenced by extensions (Rustic only has check extension for now), and also QSearch (which is basically a capture extension, on top of the main search).
After 5-6 plies, a few pieces and possibly the queens are out, causing capture sprees on both sides. That will cause qsearch to go very deep, and thus drive up the qsearch count. Even if you run Stockfish, which races off to depth 20 in a few seconds, has a QSearch/Seldepth of 35.
In later versions of Rustic, seldepth will probably decrease when I start to prune the search tree and reduce moves, and then increase again when the engine gets extensions.
PS: In Rustic, you don't have to do all the UCI stuff if you don't want to. If you want to do a search run from the starting position, you can just start the engine and type "go". It will work. If you want to run an analysis on a certain position with a specific hash table size, and not see the 2-second intermediate updates, use the -f, -h and -q options:
rustic.exe -f "<fen_string>" -h<size_in_mb> -q
Ah, thanks for educating me. I, in Zahak, only use seldepth for check-extension. But you are probably right, QSearch makes sense to keep track of, too
Glad to be of help 👍
CuteChess GUI shows the depth (or seldepth?) as ~22, while in reality it is ~7