Skip to content

Commit c99eb8e

Browse files
FauziAkramvondele
authored andcommitted
Remove cap from a bonusScale formula
Passed STC: LLR: 2.93 (-2.94,2.94) <-1.75,0.25> Total: 127264 W: 33159 L: 33042 D: 61063 Ptnml(0-2): 336, 14509, 33866, 14544, 377 https://tests.stockfishchess.org/tests/view/68a63fccb6fb3300203bc818 Passed LTC: LLR: 2.94 (-2.94,2.94) <-1.75,0.25> Total: 469512 W: 120094 L: 120331 D: 229087 Ptnml(0-2): 238, 51317, 131885, 51076, 240 https://tests.stockfishchess.org/tests/view/68a8d867b6fb3300203bcab5 closes #6260 Bench: 2433974
1 parent af181d9 commit c99eb8e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/search.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1405,7 +1405,7 @@ Value Search::Worker::search(
14051405
else if (!priorCapture && prevSq != SQ_NONE)
14061406
{
14071407
int bonusScale = -228;
1408-
bonusScale += std::min(-(ss - 1)->statScore / 104, 322);
1408+
bonusScale -= (ss - 1)->statScore / 104;
14091409
bonusScale += std::min(63 * depth, 508);
14101410
bonusScale += 184 * ((ss - 1)->moveCount > 8);
14111411
bonusScale += 143 * (!ss->inCheck && bestValue <= ss->staticEval - 92);

0 commit comments

Comments
 (0)