Skip to content

Commit

Permalink
Simplifying improving and worsening deduction formulas
Browse files Browse the repository at this point in the history
  • Loading branch information
PikaCat-OuO committed May 17, 2024
1 parent d6568d2 commit 91becb9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/search.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ static constexpr double EvalLevel[10] = {0.981, 0.956, 0.895, 0.949, 0.913,
// Futility margin
Value futility_margin(Depth d, bool noTtCutNode, bool improving, bool oppWorsening) {
Value futilityMult = 158 - 33 * noTtCutNode;
Value improvingDeduction = 44 * improving * futilityMult / 32;
Value worseningDeduction = (364 + 47 * improving) * oppWorsening * futilityMult / 1024;
Value improvingDeduction = 2 * improving * futilityMult;
Value worseningDeduction = 392 * oppWorsening * futilityMult / 1024;

return futilityMult * d - improvingDeduction - worseningDeduction;
}
Expand Down

0 comments on commit 91becb9

Please sign in to comment.