]> git.sesse.net Git - stockfish/commitdiff
Simplify multiplier for improvement
authorcj5716 <125858804+cj5716@users.noreply.github.com>
Sun, 4 Jun 2023 23:59:56 +0000 (07:59 +0800)
committerStéphane Nicolet <Stephane.Nicolet@u-paris2.fr>
Sun, 11 Jun 2023 13:05:54 +0000 (15:05 +0200)
This simplifies a `* 99 / 1300` term into just `/ 13`.

Passed non-regression STC:
LLR: 2.92 (-2.94,2.94) <-1.75,0.25>
Total: 58816 W: 15727 L: 15540 D: 27549
Ptnml(0-2): 149, 6370, 16203, 6517, 169
https://tests.stockfishchess.org/tests/view/647d25e4726f6b400e408165

Passed non-regression LTC:
LLR: 2.95 (-2.94,2.94) <-1.75,0.25>
Total: 154386 W: 41749 L: 41669 D: 70968
Ptnml(0-2): 94, 14992, 46956, 15042, 109
https://tests.stockfishchess.org/tests/view/647d9b3c726f6b400e408b2a

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

Bench:  2511327

src/search.cpp

index c7b00766553e96f72db634d105724453090ed4bf..593fdc722e0b13a2a1c3d3b8c6087e9b5e613612 100644 (file)
@@ -779,7 +779,7 @@ namespace {
         && (ss-1)->statScore < 17329
         &&  eval >= beta
         &&  eval >= ss->staticEval
-        &&  ss->staticEval >= beta - 21 * depth - improvement * 99 / 1300 + 258
+        &&  ss->staticEval >= beta - 21 * depth - improvement / 13 + 258
         && !excludedMove
         &&  pos.non_pawn_material(us)
         && (ss->ply >= thisThread->nmpMinPly))