Skip to content

Commit

Permalink
Bench: 27539910
Browse files Browse the repository at this point in the history
  • Loading branch information
TerjeKir committed Nov 15, 2023
1 parent 95562bb commit d04fee1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/evaluate.c
Original file line number Diff line number Diff line change
Expand Up @@ -563,6 +563,8 @@ int EvalPosition(const Position *pos, PawnCache pc) {
+ EgScore(eval) * (MidGame - pos->phase) * scale / 128)
/ MidGame;

eval = (eval / 16) * 16;

// Return the evaluation, negated if we are black + tempo bonus
return (sideToMove == WHITE ? eval : -eval) + Tempo;
}

0 comments on commit d04fee1

Please sign in to comment.