Skip to content

Commit

Permalink
Update search.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
FauziAkram authored Oct 27, 2023
1 parent 4626800 commit a338273
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 @@ -770,7 +770,7 @@ Value search(Position& pos, Stack* ss, Value alpha, Value beta, Depth depth, boo
{
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 * 0.57;
thisThread->mainHistory[~us][from_to((ss-1)->currentMove)] << stat_bonus(depth) * bonus * 57 / 100;
}
return value;
}
Expand Down Expand Up @@ -1329,7 +1329,7 @@ Value search(Position& pos, Stack* ss, Value alpha, Value beta, Depth depth, boo
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 * 0.61;
<< stat_bonus(depth) * bonus * 61 / 100;
}

if (PvNode)
Expand Down

0 comments on commit a338273

Please sign in to comment.