]> git.sesse.net Git - stockfish/blobdiff - src/search.cpp
Consolidate CastlingSide and CastlingRights
[stockfish] / src / search.cpp
index b154c6d9f647bb48cf3eb45d52689f0d0943e0be..7a16ef8cfc08af9da7ab9e374d5baf338a5d8026 100644 (file)
@@ -64,7 +64,7 @@ namespace {
   // Razor and futility margins
   constexpr int RazorMargin = 661;
   Value futility_margin(Depth d, bool improving) {
-    return Value((168 - 51 * improving) * d / ONE_PLY);
+    return Value(198 * (d / ONE_PLY - improving));
   }
 
   // Reductions lookup table, initialized at startup
@@ -1074,7 +1074,8 @@ moves_loop: // When in check, search starts from here
           &&  moveCount > 1 + 3 * rootNode
           && (  !captureOrPromotion
               || moveCountPruning
-              || ss->staticEval + PieceValue[EG][pos.captured_piece()] <= alpha))
+              || ss->staticEval + PieceValue[EG][pos.captured_piece()] <= alpha
+              || cutNode))
       {
           Depth r = reduction(improving, depth, moveCount);