projects
/
fairystockfish.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
8f1b4a5
)
Fix definition of camp in king safety
author
Fabian Fichter
<ianfab@users.noreply.github.com>
Fri, 28 Feb 2020 17:39:35 +0000 (18:39 +0100)
committer
Fabian Fichter
<ianfab@users.noreply.github.com>
Fri, 28 Feb 2020 17:39:35 +0000 (18:39 +0100)
src/evaluate.cpp
patch
|
blob
|
history
diff --git
a/src/evaluate.cpp
b/src/evaluate.cpp
index
591bb1e
..
85d5107
100644
(file)
--- a/
src/evaluate.cpp
+++ b/
src/evaluate.cpp
@@
-457,7
+457,7
@@
namespace {
constexpr Color Them = (Us == WHITE ? BLACK : WHITE);
Rank r = relative_rank(Us, std::min(Rank((pos.max_rank() - 1) / 2 + 1), pos.max_rank()), pos.max_rank());
- Bitboard Camp = AllSquares ^ forward_ranks_bb(Us, r);
+ Bitboard Camp = pos.board_bb() & ~forward_ranks_bb(Us, r);
if (!pos.count<KING>(Us) || !pos.checking_permitted())
return SCORE_ZERO;