mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-20 09:06:45 +08:00
Merge Connected and Candidate
These two notions are very correlated. Since connected has the most generality, it makes sense to generalize it to encompass what is covered by candidate. STC: LLR: 4.03 (-2.94,2.94) [-3.00,1.00] Total: 11970 W: 2577 L: 2379 D: 7014 LTC: LLR: 2.96 (-2.94,2.94) [-3.00,1.00] Total: 13194 W: 2389 L: 2255 D: 8550 bench 7328585
This commit is contained in:
@@ -626,13 +626,13 @@ namespace {
|
||||
}
|
||||
|
||||
|
||||
// evaluate_unstoppable_pawns() scores the most advanced among the passed and
|
||||
// candidate pawns. In case both players have no pieces but pawns, this is
|
||||
// somewhat related to the possibility that pawns are unstoppable.
|
||||
// evaluate_unstoppable_pawns() scores the most advanced passed pawn. In case
|
||||
// both players have no pieces but pawns, this is somewhat related to the
|
||||
// possibility that pawns are unstoppable.
|
||||
|
||||
Score evaluate_unstoppable_pawns(Color us, const EvalInfo& ei) {
|
||||
|
||||
Bitboard b = ei.pi->passed_pawns(us) | ei.pi->candidate_pawns(us);
|
||||
Bitboard b = ei.pi->passed_pawns(us);
|
||||
|
||||
return b ? Unstoppable * int(relative_rank(us, frontmost_sq(us, b))) : SCORE_ZERO;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user