summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
c1558dd)
No functional change.
Signed-off-by: Marco Costalba <mcostalba@gmail.com>
assert(tte->static_value() != VALUE_NONE);
evalMargin = tte->static_value_margin();
assert(tte->static_value() != VALUE_NONE);
evalMargin = tte->static_value_margin();
- bestValue = tte->static_value();
+ ss->eval = bestValue = tte->static_value();
- bestValue = evaluate(pos, evalMargin);
+ ss->eval = bestValue = evaluate(pos, evalMargin);
update_gains(pos, (ss-1)->currentMove, (ss-1)->eval, ss->eval);
// Stand pat. Return immediately if static value is at least beta
update_gains(pos, (ss-1)->currentMove, (ss-1)->eval, ss->eval);
// Stand pat. Return immediately if static value is at least beta
deepChecks = (depth == -ONE_PLY && bestValue >= beta - PawnValueMidgame / 8);
// Futility pruning parameters, not needed when in check
deepChecks = (depth == -ONE_PLY && bestValue >= beta - PawnValueMidgame / 8);
// Futility pruning parameters, not needed when in check
- futilityBase = bestValue + FutilityMarginQS + evalMargin;
+ futilityBase = ss->eval + evalMargin + FutilityMarginQS;
enoughMaterial = pos.non_pawn_material(pos.side_to_move()) > RookValueMidgame;
}
enoughMaterial = pos.non_pawn_material(pos.side_to_move()) > RookValueMidgame;
}
- // Detect blocking evasions that are candidate to be pruned
+ // Detect non-capture evasions that are candidate to be pruned
evasionPrunable = isCheck
&& bestValue > value_mated_in(PLY_MAX)
&& !pos.move_is_capture(move)
evasionPrunable = isCheck
&& bestValue > value_mated_in(PLY_MAX)
&& !pos.move_is_capture(move)