projects
/
stockfish
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
747e035
)
A bit more cleanup
author
Gary Linscott
<glinscott@gmail.com>
Thu, 26 Jun 2014 19:20:30 +0000
(15:20 -0400)
committer
Gary Linscott
<glinscott@gmail.com>
Thu, 26 Jun 2014 19:20:30 +0000
(15:20 -0400)
src/evaluate.cpp
patch
|
blob
|
history
diff --git
a/src/evaluate.cpp
b/src/evaluate.cpp
index 7eca96fa5aef1678e961567c5238b7a5cd3366d7..7fb3a8cb141d4294c969b8292b4e4ca3c288813b 100644
(file)
--- a/
src/evaluate.cpp
+++ b/
src/evaluate.cpp
@@
-750,9
+750,10
@@
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);
// 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 ( abs(eg_value(score)) <= BishopValueEg &&
- ei.pi->pawn_span(strongSide) <= 1 &&
- !pos.pawn_passed(~strongSide, pos.king_square(~strongSide))) {
+ } else if ( abs(eg_value(score)) <= BishopValueEg
+ && ei.pi->pawn_span(strongSide) <= 1
+ && !pos.pawn_passed(~strongSide, pos.king_square(~strongSide))) {
+ // Endings where weaker side can be place his king in front of the opponent's pawns are drawish.
sf = ScaleFactor(ScalePawnSpan[ei.pi->pawn_span(strongSide)]);
}
}
sf = ScaleFactor(ScalePawnSpan[ei.pi->pawn_span(strongSide)]);
}
}