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:
lucasart
2014-10-06 19:26:30 +08:00
committed by Joona Kiiski
parent 15e2191111
commit 069073ea68
4 changed files with 17 additions and 53 deletions

View File

@@ -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;
}