mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-24 19:16:49 +08:00
Introduce distance() and unify some API
Original work by Lucas. No functional change.
This commit is contained in:
@@ -165,7 +165,7 @@ namespace {
|
||||
value -= UnsupportedPawnPenalty;
|
||||
|
||||
if (doubled)
|
||||
value -= Doubled[f] / rank_distance(s, lsb(doubled));
|
||||
value -= Doubled[f] / distance<Rank>(s, Square(lsb(doubled)));
|
||||
|
||||
if (backward)
|
||||
value -= Backward[opposed][f];
|
||||
|
||||
Reference in New Issue
Block a user