mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-21 17:46:26 +08:00
Code style at passed pawn eval
No functional change.
This commit is contained in:
committed by
Marco Costalba
parent
d3947b2f3e
commit
21cbfafc03
@@ -810,8 +810,8 @@ Value do_evaluate(const Position& pos, Value& margin) {
|
|||||||
Square blockSq = s + pawn_push(Us);
|
Square blockSq = s + pawn_push(Us);
|
||||||
|
|
||||||
// Adjust bonus based on kings proximity
|
// Adjust bonus based on kings proximity
|
||||||
ebonus += Value(square_distance(pos.king_square(Them), blockSq) * 5 * rr);
|
ebonus += Value(square_distance(pos.king_square(Them), blockSq) * 5 * rr)
|
||||||
ebonus -= Value(square_distance(pos.king_square(Us), blockSq) * 2 * rr);
|
- Value(square_distance(pos.king_square(Us ), blockSq) * 2 * rr);
|
||||||
|
|
||||||
// If blockSq is not the queening square then consider also a second push
|
// If blockSq is not the queening square then consider also a second push
|
||||||
if (relative_rank(Us, blockSq) != RANK_8)
|
if (relative_rank(Us, blockSq) != RANK_8)
|
||||||
|
|||||||
Reference in New Issue
Block a user