Permalink
Browse files

Less scaling down if the strong side has several passed pawns

  • Loading branch information...
snicolet committed Dec 5, 2017
1 parent be382bb commit e53d64c52a21a9252b8117bb33868e11821a7cf4
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/evaluate.cpp
View
@@ -802,7 +802,9 @@ namespace {
// is almost a draw, in case of KBP vs KB, it is even more a draw.
if ( pos.non_pawn_material(WHITE) == BishopValueMg
&& pos.non_pawn_material(BLACK) == BishopValueMg)
return more_than_one(pos.pieces(PAWN)) ? ScaleFactor(31) : ScaleFactor(9);
return more_than_one(pe->passed_pawns(strongSide)) ? ScaleFactor(50)
:more_than_one(pos.pieces(PAWN)) ? ScaleFactor(31)
: ScaleFactor(9);
// Endgame with opposite-colored bishops, but also other pieces. Still
// a bit drawish, but not as drawish as with only the two bishops.

0 comments on commit e53d64c

Please sign in to comment.