Skip to content

Commit dcb0233

Browse files
FauziAkramDisservin
authored andcommitted
Simplifying improving and worsening deduction formulas
Passed STC: LLR: 2.93 (-2.94,2.94) <-1.75,0.25> Total: 77696 W: 20052 L: 19878 D: 37766 Ptnml(0-2): 222, 9124, 19994, 9274, 234 https://tests.stockfishchess.org/tests/view/66440032bc537f561945171e Passed LTC: LLR: 2.95 (-2.94,2.94) <-1.75,0.25> Total: 234414 W: 58874 L: 58871 D: 116669 Ptnml(0-2): 96, 26147, 64742, 26102, 120 https://tests.stockfishchess.org/tests/view/6644094cbc537f5619451735 closes official-stockfish#5248 Bench: 1336738
1 parent 1f3a0fd commit dcb0233

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/search.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ static constexpr double EvalLevel[10] = {0.981, 0.956, 0.895, 0.949, 0.913,
6060
// Futility margin
6161
Value futility_margin(Depth d, bool noTtCutNode, bool improving, bool oppWorsening) {
6262
Value futilityMult = 131 - 48 * noTtCutNode;
63-
Value improvingDeduction = 57 * improving * futilityMult / 32;
64-
Value worseningDeduction = (309 + 52 * improving) * oppWorsening * futilityMult / 1024;
63+
Value improvingDeduction = 2 * improving * futilityMult;
64+
Value worseningDeduction = 330 * oppWorsening * futilityMult / 1024;
6565

6666
return futilityMult * d - improvingDeduction - worseningDeduction;
6767
}

0 commit comments

Comments
 (0)