Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
Bench: 6097414
  • Loading branch information
cj5716 authored Jan 17, 2024
1 parent 4cc00ba commit 15aad5c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/search.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<false>(-alpha - 1, -alpha, newDepth, !cutNode, td, ss + 1);
score = -Negamax<false>(-alpha - 1, -alpha, newDepth, !cutNode, td, ss + 1);

// define the conthist bonus
int bonus = std::min(16 * (depth + 1) * (depth + 1), 1200);
Expand Down

0 comments on commit 15aad5c

Please sign in to comment.