projects
/
fairystockfish.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
1361247
)
Evaluate virtual pawn drop checks for bughouse
author
Fabian Fichter
<ianfab@users.noreply.github.com>
Fri, 6 Mar 2020 14:38:02 +0000 (15:38 +0100)
committer
Fabian Fichter
<ianfab@users.noreply.github.com>
Fri, 6 Mar 2020 14:38:02 +0000 (15:38 +0100)
bughouse
Total: 500 W: 265 L: 232 D: 3
src/evaluate.cpp
patch
|
blob
|
history
diff --git
a/src/evaluate.cpp
b/src/evaluate.cpp
index
4fc31b0
..
fea27a4
100644
(file)
--- a/
src/evaluate.cpp
+++ b/
src/evaluate.cpp
@@
-514,7
+514,7
@@
namespace {
unsafeChecks |= knightChecks;
break;
case PAWN:
- if (pos.piece_drops() && pos.count_in_hand(Them, pt))
+ if (pos.piece_drops() && (pos.count_in_hand(Them, pt) || pos.two_boards()))
{
pawnChecks = attacks_bb(Us, pt, ksq, pos.pieces()) & ~pos.pieces() & pos.board_bb();
if (pawnChecks & safe)