mirror of
https://github.com/opelly27/Stockfish.git
synced 2026-05-20 09:47:46 +00:00
Introduce distance() and unify some API
Original work by Lucas. No functional change.
This commit is contained in:
+1
-1
@@ -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