1
0
Fork 0
mirror of https://github.com/sockspls/badfish synced 2025-05-02 17:49:35 +00:00

Code style at passed pawn eval

No functional change.
This commit is contained in:
Reuven Peleg 2013-09-15 15:14:56 +03:00 committed by Marco Costalba
parent d3947b2f3e
commit 21cbfafc03

View file

@ -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)