projects
/
fairystockfish.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
39c01ce
)
Fix attackers calculation for cambodian
author
Fabian Fichter
<ianfab@users.noreply.github.com>
Fri, 19 Feb 2021 16:27:40 +0000 (17:27 +0100)
committer
Fabian Fichter
<ianfab@users.noreply.github.com>
Fri, 19 Feb 2021 16:27:40 +0000 (17:27 +0100)
Use slow attackers calculation to consider special moves.
src/variant.h
patch
|
blob
|
history
diff --git
a/src/variant.h
b/src/variant.h
index
c799eee
..
c07b09f
100644
(file)
--- a/
src/variant.h
+++ b/
src/variant.h
@@
-162,7
+162,9
@@
struct Variant {
|| pt == DRAGON || pt == DRAGON_HORSE
|| (pt == KING && kingType == KING))
&& !(mobilityRegion[WHITE][pt] || mobilityRegion[BLACK][pt]);
- });
+ })
+ && !cambodianMoves
+ && !diagonalLines;
return this;
}
};