Skip to content
Permalink
Browse files

More smooth formula for scale factor in opposite bishop endings

  • Loading branch information...
Stefano80 committed May 19, 2015
1 parent eaeb63f commit 75fdade0e601ab10c56ff70247c52a3b29feea86
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/evaluate.cpp
@@ -790,7 +790,7 @@ namespace {
// is almost a draw, in case of KBP vs KB is even more a draw.
if ( pos.non_pawn_material(WHITE) == BishopValueMg
&& pos.non_pawn_material(BLACK) == BishopValueMg)
sf = more_than_one(pos.pieces(PAWN)) ? ScaleFactor(32) : ScaleFactor(8);
sf = ScaleFactor(8*(pos.count<PAWN >(WHITE) + pos.count<PAWN >(BLACK)));

// 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 75fdade

Please sign in to comment.
You can’t perform that action at this time.