From 2c1797ab81957221266f7dd445845a1a525ccb9d Mon Sep 17 00:00:00 2001 From: mstembera Date: Mon, 14 Dec 2015 18:34:43 +0000 Subject: [PATCH] Fix easy move bug in SMP mode Fix a bug where we could stop the search after only 10% of time used due to a matching easy move but later switch to a different move that was never pre-screened as easy due to SMP thread select. STC: LLR: 2.95 (-2.94,2.94) [-3.00,1.00] Total: 27227 W: 4910 L: 4800 D: 17517 LTC: LLR: 2.96 (-2.94,2.94) [-3.00,1.00] Total: 40368 W: 5826 L: 5733 D: 28809 Resolves #521 --- src/search.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/search.cpp b/src/search.cpp index e5c485fc..6c7069e0 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -328,7 +328,7 @@ void MainThread::search() { // Check if there are threads with a better score than main thread. Thread* bestThread = this; - if (Options["MultiPV"] == 1 && !Skill(Options["Skill Level"]).enabled()) + if (!easyPlayed && Options["MultiPV"] == 1 && !Skill(Options["Skill Level"]).enabled()) for (Thread* th : Threads) if ( th->completedDepth > bestThread->completedDepth && th->rootMoves[0].score > bestThread->rootMoves[0].score) -- 2.39.2