Skip to content

Commit

Permalink
Format Code
Browse files Browse the repository at this point in the history
No functional change
  • Loading branch information
Disservin committed Oct 27, 2023
1 parent d30af4f commit 08ed4c9
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/search.cpp
Expand Up @@ -768,9 +768,12 @@ Value search(Position& pos, Stack* ss, Value alpha, Value beta, Depth depth, boo
{
if (!priorCapture && prevSq != SQ_NONE)
{
int bonus = (depth > 6) + (PvNode || cutNode) + (value < alpha - 658) + ((ss-1)->moveCount > 11);
update_continuation_histories(ss-1, pos.piece_on(prevSq), prevSq, stat_bonus(depth) * bonus);
thisThread->mainHistory[~us][from_to((ss-1)->currentMove)] << stat_bonus(depth) * bonus * 57 / 100;
int bonus = (depth > 6) + (PvNode || cutNode) + (value < alpha - 658)
+ ((ss - 1)->moveCount > 11);
update_continuation_histories(ss - 1, pos.piece_on(prevSq), prevSq,
stat_bonus(depth) * bonus);
thisThread->mainHistory[~us][from_to((ss - 1)->currentMove)]
<< stat_bonus(depth) * bonus * 57 / 100;
}
return value;
}
Expand Down

0 comments on commit 08ed4c9

Please sign in to comment.