projects
/
fairystockfish.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
a136cb3
)
Fix check extension for drop variants
author
Fabian Fichter
<ianfab@users.noreply.github.com>
Tue, 30 Apr 2019 20:59:38 +0000 (22:59 +0200)
committer
Fabian Fichter
<ianfab@users.noreply.github.com>
Tue, 30 Apr 2019 20:59:38 +0000 (22:59 +0200)
src/search.cpp
patch
|
blob
|
history
diff --git
a/src/search.cpp
b/src/search.cpp
index
48921e3
..
1de3201
100644
(file)
--- a/
src/search.cpp
+++ b/
src/search.cpp
@@
-947,7
+947,7
@@
moves_loop: // When in check, search starts from here
// Check extension (~2 Elo)
else if ( givesCheck
- && (pos.blockers_for_king(~us) & from_sq(move) || pos.see_ge(move)))
+ && ((type_of(move) != DROP && (pos.blockers_for_king(~us) & from_sq(move))) || pos.see_ge(move)))
extension = ONE_PLY;
else if ( pos.must_capture() // Capture extension (all moves are captures)
&& pos.capture(move)