mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-20 00:56:39 +08:00
Small simplification in space eval scoring
No functional change.
This commit is contained in:
@@ -372,7 +372,7 @@ Value do_evaluate(const Position& pos, Value& margin) {
|
||||
if (ei.mi->space_weight())
|
||||
{
|
||||
int s = evaluate_space<WHITE>(pos, ei) - evaluate_space<BLACK>(pos, ei);
|
||||
score += apply_weight(make_score(s * ei.mi->space_weight(), 0), Weights[Space]);
|
||||
score += apply_weight(s * ei.mi->space_weight(), Weights[Space]);
|
||||
}
|
||||
|
||||
// Scale winning side if position is more drawish that what it appears
|
||||
@@ -410,8 +410,8 @@ Value do_evaluate(const Position& pos, Value& margin) {
|
||||
Tracing::add(IMBALANCE, ei.mi->material_value());
|
||||
Tracing::add(PAWN, ei.pi->pawns_value());
|
||||
Tracing::add(UNSTOPPABLE, evaluate_unstoppable_pawns(pos, ei));
|
||||
Score w = make_score(ei.mi->space_weight() * evaluate_space<WHITE>(pos, ei), 0);
|
||||
Score b = make_score(ei.mi->space_weight() * evaluate_space<BLACK>(pos, ei), 0);
|
||||
Score w = ei.mi->space_weight() * evaluate_space<WHITE>(pos, ei);
|
||||
Score b = ei.mi->space_weight() * evaluate_space<BLACK>(pos, ei);
|
||||
Tracing::add(SPACE, apply_weight(w, Weights[Space]), apply_weight(b, Weights[Space]));
|
||||
Tracing::add(TOTAL, score);
|
||||
Tracing::stream << "\nUncertainty margin: White: " << to_cp(margins[WHITE])
|
||||
|
||||
Reference in New Issue
Block a user