diff --git a/AUTHORS b/AUTHORS index fe573fe50..29efae747 100644 --- a/AUTHORS +++ b/AUTHORS @@ -37,6 +37,7 @@ Aron Petkovski (fury) Arseniy Surkov (codedeliveryservice) Artem Solopiy (EntityFX) Auguste Pop +Ayush (ayushthepiro11-design) Balazs Szilagyi Balint Pfliegel Baptiste Rech (breatn) diff --git a/src/search.cpp b/src/search.cpp index 28367605e..710e61c94 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -995,8 +995,8 @@ Value Search::Worker::search( { assert((ss - 1)->currentMove != Move::null()); - // Null move dynamic reduction based on depth - Depth R = 7 + depth / 3; + // Null move dynamic reduction based on depth and evaluation margin + Depth R = 7 + depth / 3 + std::max(0, (ss->staticEval - beta) / 256); do_null_move(pos, st, ss); Value nullValue = -search(pos, ss + 1, -beta, -beta + 1, depth - R, false);