Skip to content

Commit d275bf9

Browse files
xu-shawnvondele
authored andcommitted
Introduce Fail Low History Bonus
When a node fails low, give TT move a small bonus 1/4 of normal value. Passed STC: LLR: 2.95 (-2.94,2.94) <0.00,2.00> Total: 92384 W: 24094 L: 23691 D: 44599 Ptnml(0-2): 323, 10852, 23465, 11203, 349 https://tests.stockfishchess.org/tests/view/66be80794ff211be9d4eed68 Passed LTC: LLR: 2.94 (-2.94,2.94) <0.50,2.50> Total: 114660 W: 29260 L: 28778 D: 56622 Ptnml(0-2): 97, 12506, 31653, 12966, 108 https://tests.stockfishchess.org/tests/view/66bf63ee4ff211be9d4eeef0 closes #5539 bench 1463003
1 parent 6cf7f30 commit d275bf9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/search.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1361,6 +1361,10 @@ Value Search::Worker::search(
13611361
<< stat_bonus(depth) * bonus / 25;
13621362
}
13631363

1364+
// Bonus when search fails low and there is a TT move
1365+
else if (moveCount > 1 && ttData.move && (cutNode || PvNode))
1366+
thisThread->mainHistory[us][ttData.move.from_to()] << stat_bonus(depth) / 4;
1367+
13641368
if (PvNode)
13651369
bestValue = std::min(bestValue, maxValue);
13661370

0 commit comments

Comments
 (0)