Skip to content
Permalink
Browse files

use k+1 for endgame value. Bench: 4217639

  • Loading branch information...
locutus2 committed Aug 13, 2019
1 parent bfbf256 commit 387cb5d4fa475312960f54d536ff90ac82110a3f
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/evaluate.cpp
@@ -651,7 +651,7 @@ namespace {
if ((pos.pieces(Us) & bb) || (attackedBy[Us][ALL_PIECES] & blockSq))
k += 5;

bonus += make_score(k * w, std::max(k - 1, 0) * w);
bonus += make_score(k * w, (k + 1) * w);
}
} // r > RANK_3

0 comments on commit 387cb5d

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