diff --git a/src/search.cpp b/src/search.cpp index 6ddf911d..ac33e309 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -638,12 +638,12 @@ int Negamax(int alpha, int beta, int depth, const bool cutNode, S_ThreadData* td // if we failed high on a reduced node we'll search with a reduced window and full depth if (score > alpha && depthReduction) { - // SF yoink, based on the value returned by our reduced search see if we should search deeper, this is an exact yoink of what SF and frankly i don't care lmao + // SF yoink, based on the value returned by our reduced search see if we should search deeper or shallower, this is an exact yoink of what SF and frankly i don't care lmao const bool doDeeperSearch = score > (bestScore + 53 + 2 * newDepth); const bool doShallowerSearch = score < bestScore + newDepth; newDepth += doDeeperSearch - doShallowerSearch; if (newDepth > reducedDepth) - score = -Negamax(-alpha - 1, -alpha, newDepth, !cutNode, td, ss + 1); + score = -Negamax(-alpha - 1, -alpha, newDepth, !cutNode, td, ss + 1); // define the conthist bonus int bonus = std::min(16 * (depth + 1) * (depth + 1), 1200);