mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-06 10:53:50 +08:00
Simplify stat eval history adjustment further
closes https://github.com/official-stockfish/Stockfish/pull/6106 bench 2074807
This commit is contained in:
committed by
Joost VandeVondele
parent
29b0c07ac8
commit
d0212906bd
@@ -807,7 +807,7 @@ Value Search::Worker::search(
|
||||
}
|
||||
|
||||
// Use static evaluation difference to improve quiet move ordering
|
||||
if (((ss - 1)->currentMove).is_ok() && !(ss - 1)->inCheck && !priorCapture && ttData.depth <= 2)
|
||||
if (((ss - 1)->currentMove).is_ok() && !(ss - 1)->inCheck && !priorCapture && !ttHit)
|
||||
{
|
||||
int bonus = std::clamp(-10 * int((ss - 1)->staticEval + ss->staticEval), -1858, 1492) + 661;
|
||||
thisThread->mainHistory[~us][((ss - 1)->currentMove).from_to()] << bonus * 1057 / 1024;
|
||||
|
||||
Reference in New Issue
Block a user