From 01fa5a494cff882f67ac73a592e7a413934b9340 Mon Sep 17 00:00:00 2001 From: xefoci7612 Date: Wed, 3 Nov 2021 10:50:51 +0100 Subject: [PATCH] Increase MultiPV to 5 with Skill When playing with strength handicap we use MultiPV search to retrieve a set of possible moves. This patch increase default multi PV search to 5 from 4 so to consider a wider set of possible move. We expect to lower strength because an extra weaker move enters the set. This patch is aprerequisite for further work. No functional change. --- src/search.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/search.cpp b/src/search.cpp index 6305d536..e7f0721f 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -323,7 +323,7 @@ void Thread::search() { // When playing with strength handicap enable MultiPV search that we will // use behind the scenes to retrieve a set of possible moves. if (skill.enabled()) - multiPV = std::max(multiPV, (size_t)4); + multiPV = std::max(multiPV, (size_t)5); multiPV = std::min(multiPV, rootMoves.size());