mirror of
https://github.com/sockspls/badfish
synced 2025-04-30 08:43:09 +00:00
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
This commit is contained in:
parent
9fac5774f4
commit
2c1797ab81
1 changed files with 1 additions and 1 deletions
|
@ -328,7 +328,7 @@ void MainThread::search() {
|
||||||
|
|
||||||
// Check if there are threads with a better score than main thread.
|
// Check if there are threads with a better score than main thread.
|
||||||
Thread* bestThread = this;
|
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)
|
for (Thread* th : Threads)
|
||||||
if ( th->completedDepth > bestThread->completedDepth
|
if ( th->completedDepth > bestThread->completedDepth
|
||||||
&& th->rootMoves[0].score > bestThread->rootMoves[0].score)
|
&& th->rootMoves[0].score > bestThread->rootMoves[0].score)
|
||||||
|
|
Loading…
Add table
Reference in a new issue