From: mstembera Date: Mon, 14 Dec 2015 18:34:43 +0000 (+0000) Subject: Fix easy move bug in SMP mode X-Git-Url: https://git.sesse.net/?p=stockfish;a=commitdiff_plain;h=2c1797ab81957221266f7dd445845a1a525ccb9d 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 --- 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)