mirror of
https://github.com/opelly27/Stockfish.git
synced 2026-05-20 13:17:44 +00:00
Use VALUE_DRAW instead of VALUE_ZERO where better
No functional change. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
+1
-1
@@ -334,7 +334,7 @@ Value do_evaluate(const Position& pos, Value& margin) {
|
||||
}
|
||||
|
||||
// Scale winning side if position is more drawish that what it appears
|
||||
ScaleFactor sf = eg_value(bonus) > VALUE_ZERO ? mi->scale_factor(pos, WHITE)
|
||||
ScaleFactor sf = eg_value(bonus) > VALUE_DRAW ? mi->scale_factor(pos, WHITE)
|
||||
: mi->scale_factor(pos, BLACK);
|
||||
Phase phase = mi->game_phase();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user