mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-19 16:46:30 +08:00
Revert scale factor in pawn evaluation
It simply doesn't seems to work both in direct matches and in balance tuning. So revert the idea. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
@@ -430,13 +430,6 @@ Value do_evaluate(const Position& pos, EvalInfo& ei, int threadID) {
|
||||
factor[BLACK] = sf;
|
||||
}
|
||||
|
||||
// If we don't already have an unusual scale factor, use pawn
|
||||
// evaluation ones.
|
||||
if (factor[WHITE] == SCALE_FACTOR_NORMAL)
|
||||
factor[WHITE] = ei.pi->scale_factor(WHITE);
|
||||
if (factor[BLACK] == SCALE_FACTOR_NORMAL)
|
||||
factor[BLACK] = ei.pi->scale_factor(BLACK);
|
||||
|
||||
// Interpolate between the middle game and the endgame score
|
||||
Color stm = pos.side_to_move();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user