]> git.sesse.net Git - stockfish/commitdiff
Simplify improving deduction in futility margin
authorLinmiao Xu <linmiao.xu@gmail.com>
Sat, 6 Jul 2024 17:41:11 +0000 (13:41 -0400)
committerJoost VandeVondele <Joost.VandeVondele@gmail.com>
Tue, 9 Jul 2024 16:28:06 +0000 (18:28 +0200)
Passed non-regression STC:
https://tests.stockfishchess.org/tests/view/668981d4df142e108ffc9bb4
LLR: 2.94 (-2.94,2.94) <-1.75,0.25>
Total: 312672 W: 80280 L: 80363 D: 152029
Ptnml(0-2): 729, 37198, 80529, 37187, 693

Passed non-regression LTC:
https://tests.stockfishchess.org/tests/view/668988c6df142e108ffca042
LLR: 2.95 (-2.94,2.94) <-1.75,0.25>
Total: 126042 W: 31971 L: 31857 D: 62214
Ptnml(0-2): 50, 13988, 34832, 14100, 51

closes https://github.com/official-stockfish/Stockfish/pull/5454

bench 1100483

src/search.cpp

index 9d0b5627cf41b6738281677c7c257a3c26b89d89..153eba188c8a3e49dbead05abd9772530147b80f 100644 (file)
@@ -68,7 +68,7 @@ namespace {
 // Futility margin
 Value futility_margin(Depth d, bool noTtCutNode, bool improving, bool oppWorsening) {
     Value futilityMult       = 122 - 37 * noTtCutNode;
-    Value improvingDeduction = 58 * improving * futilityMult / 32;
+    Value improvingDeduction = improving * futilityMult * 2;
     Value worseningDeduction = oppWorsening * futilityMult / 3;
 
     return futilityMult * d - improvingDeduction - worseningDeduction;