mirror of
https://github.com/sockspls/badfish
synced 2025-05-02 01:29:36 +00:00
Code style at passed pawn eval
No functional change.
This commit is contained in:
parent
d3947b2f3e
commit
21cbfafc03
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||||
|
|
Loading…
Add table
Reference in a new issue