mirror of
https://github.com/sockspls/badfish
synced 2025-04-30 08:43:09 +00:00
Corrects a functional change in a cleanup patch.
This corrects a functional change in
ddcbacd04d
changing evaluation of KPPvK. Bench remains unchanged at low depth
With this patch, 8/8/5k1p/8/7p/7K/8/8 b - - 1 11 is again correctly evaluated as a draw.
closes https://github.com/official-stockfish/Stockfish/pull/2807
Bench: 4366686
This commit is contained in:
parent
1f3bd968bb
commit
6c197c3964
1 changed files with 2 additions and 2 deletions
|
@ -589,8 +589,8 @@ ScaleFactor Endgame<KPsK>::operator()(const Position& pos) const {
|
||||||
Bitboard strongPawns = pos.pieces(strongSide, PAWN);
|
Bitboard strongPawns = pos.pieces(strongSide, PAWN);
|
||||||
|
|
||||||
// If all pawns are ahead of the king on a single rook file, it's a draw.
|
// If all pawns are ahead of the king on a single rook file, it's a draw.
|
||||||
if (!((strongPawns & ~FileABB) || (strongPawns & ~FileHBB)) &&
|
if ( !(strongPawns & ~(FileABB | FileHBB))
|
||||||
!(strongPawns & ~passed_pawn_span(weakSide, weakKing)))
|
&& !(strongPawns & ~passed_pawn_span(weakSide, weakKing)))
|
||||||
return SCALE_FACTOR_DRAW;
|
return SCALE_FACTOR_DRAW;
|
||||||
|
|
||||||
return SCALE_FACTOR_NONE;
|
return SCALE_FACTOR_NONE;
|
||||||
|
|
Loading…
Add table
Reference in a new issue