Tweak SEE pruning margin for drop variants
authorFabian Fichter <ianfab@users.noreply.github.com>
Wed, 24 Apr 2019 19:26:27 +0000 (21:26 +0200)
committerFabian Fichter <ianfab@users.noreply.github.com>
Wed, 24 Apr 2019 19:26:27 +0000 (21:26 +0200)
crazyhouse STC
LLR: 2.96 (-2.94,2.94) [0.00,10.00]
Total: 2927 W: 1494 L: 1352 D: 81
http://35.161.250.236:6543/tests/view/5cbed6646e23db76ed252774

crazyhouse LTC
LLR: 2.97 (-2.94,2.94) [0.00,10.00]
Total: 1666 W: 869 L: 745 D: 52
http://35.161.250.236:6543/tests/view/5cbf83926e23db76ed252782

src/search.cpp

index 151dc31..4e0be30 100644 (file)
@@ -999,7 +999,7 @@ moves_loop: // When in check, search starts from here
                   continue;
           }
           else if (   !pos.must_capture()
-                   && !pos.see_ge(move, -PawnValueEg * (depth / ONE_PLY))) // (~20 Elo)
+                   && !pos.see_ge(move, -(PawnValueEg + 120 * pos.captures_to_hand()) * (depth / ONE_PLY))) // (~20 Elo)
                   continue;
       }