File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -541,18 +541,18 @@ void Thread::search() {
541541 // Stop the search if only one legal move is available, or if all
542542 // of the available time has been used, or if we matched an easyMove
543543 // from the previous search and just did a fast verification.
544- const bool F[] = { ! mainThread->failedLow ,
545- bestValue >= mainThread->previousScore };
544+ const int F[] = { mainThread->failedLow ,
545+ bestValue - mainThread->previousScore };
546546
547- int improvingFactor = 640 - 160 *F[ 0 ] - 126 *F[ 1 ] - 124 *F[ 0 ]*F[ 1 ] ;
547+ int improvingFactor = std::max ( 229 , std::min ( 715 , 357 + 119 * F[ 0 ] - 6 * F[ 1 ])) ;
548548 double unstablePvFactor = 1 + mainThread->bestMoveChanges ;
549549
550550 bool doEasyMove = rootMoves[0 ].pv [0 ] == easyMove
551551 && mainThread->bestMoveChanges < 0.03
552- && Time.elapsed () > Time.optimum () * 25 / 204 ;
552+ && Time.elapsed () > Time.optimum () * 5 / 42 ;
553553
554554 if ( rootMoves.size () == 1
555- || Time.elapsed () > Time.optimum () * unstablePvFactor * improvingFactor / 634
555+ || Time.elapsed () > Time.optimum () * unstablePvFactor * improvingFactor / 628
556556 || (mainThread->easyMovePlayed = doEasyMove))
557557 {
558558 // If we are allowed to ponder do not stop the search now but
You can’t perform that action at this time.
0 commit comments