Skip to content

Commit

Permalink
Original version of shane's patch
Browse files Browse the repository at this point in the history
  • Loading branch information
glinscott committed Jun 25, 2014
1 parent 6c9f4cf commit 747e035
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/evaluate.cpp
Expand Up @@ -750,7 +750,8 @@ namespace {
// Endgame with opposite-colored bishops, but also other pieces. Still
// a bit drawish, but not as drawish as with only the two bishops.
sf = ScaleFactor(50 * sf / SCALE_FACTOR_NORMAL);
} else if ( ei.pi->pawn_span(strongSide) <= 1 &&
} else if ( abs(eg_value(score)) <= BishopValueEg &&
ei.pi->pawn_span(strongSide) <= 1 &&
!pos.pawn_passed(~strongSide, pos.king_square(~strongSide))) {
sf = ScaleFactor(ScalePawnSpan[ei.pi->pawn_span(strongSide)]);
}
Expand Down

0 comments on commit 747e035

Please sign in to comment.