]> git.sesse.net Git - stockfish/commitdiff
Remove reduced LMR capture bonus
authorMuzhen Gaming <61100393+XInTheDark@users.noreply.github.com>
Fri, 3 Feb 2023 10:54:30 +0000 (18:54 +0800)
committerJoost VandeVondele <Joost.VandeVondele@gmail.com>
Fri, 3 Feb 2023 19:15:09 +0000 (20:15 +0100)
In LMR, simplify away the reduced capture bonus (i.e. if (capture) bonus /= 6).

Non-regression STC: https://tests.stockfishchess.org/tests/view/63da1da9bbadd17b3787dced
LLR: 2.95 (-2.94,2.94) <-1.75,0.25>
Total: 28152 W: 7521 L: 7296 D: 13335
Ptnml(0-2): 76, 3069, 7568, 3280, 83

Non-regression LTC: https://tests.stockfishchess.org/tests/view/63da6ad4bbadd17b3787e98c
LLR: 2.96 (-2.94,2.94) <-1.75,0.25>
Total: 52472 W: 14120 L: 13941 D: 24411
Ptnml(0-2): 16, 5071, 15887, 5242, 20

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

Bench: 4034016

src/search.cpp

index b9ca3961053d435b2207ebe30d1ae6970ecb4ac3..f6bc0aa9a8098a7250037749b3c81f231b277307 100644 (file)
@@ -1214,9 +1214,6 @@ moves_loop: // When in check, search starts here
               int bonus = value > alpha ?  stat_bonus(newDepth)
                                         : -stat_bonus(newDepth);
 
-              if (capture)
-                  bonus /= 6;
-
               update_continuation_histories(ss, movedPiece, to_sq(move), bonus);
           }
       }