jhonnold / berserk

UCI Chess Engine written in C
GNU General Public License v3.0
198 stars 30 forks source link

display of the selective depth when using "go movetime" and more #559

Closed BrennusJ closed 1 month ago

BrennusJ commented 1 month ago

Hello,

Sometime, when i'musing "go movetime" the selective depth displayed is inferior to the global depth : how it is possible ? Is the selective depth diplayed is the greater selective depth of any branch ?

Something else : the UCI command "uci_opponent" will be welcome It is very usefull to adapt Contempt regarding the ELO of the opponent For exemple using Berserk in Lichess-bot python script you can setting the engine in different way if you detect à BOT or an HUMAN

Regards

jhonnold commented 1 month ago

Depth is just a general value to indicate to the user how many iterations of internal deepening have occurred and tends to align with the length of the principal variation. Selective depth is the highest depth reached on any branch within the search tree.

Selective depth has no requirement to be a higher value than depth. For example in a mate in 1 position, I would expect depth to be 200 and selective depth to be 1. 200 iterations of internal deepening happened, but Berserk had no reason to go farther than depth 1 in any branch. In positions where a draw is best, I would expect a similar output.