mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-22 01:56:58 +08:00
Original version of shane's patch
This commit is contained in:
@@ -750,7 +750,8 @@ namespace {
|
|||||||
// Endgame with opposite-colored bishops, but also other pieces. Still
|
// Endgame with opposite-colored bishops, but also other pieces. Still
|
||||||
// a bit drawish, but not as drawish as with only the two bishops.
|
// a bit drawish, but not as drawish as with only the two bishops.
|
||||||
sf = ScaleFactor(50 * sf / SCALE_FACTOR_NORMAL);
|
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))) {
|
!pos.pawn_passed(~strongSide, pos.king_square(~strongSide))) {
|
||||||
sf = ScaleFactor(ScalePawnSpan[ei.pi->pawn_span(strongSide)]);
|
sf = ScaleFactor(ScalePawnSpan[ei.pi->pawn_span(strongSide)]);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user