projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix forbidden captures and checks within first move for Eightpieces variant
[vchess.git]
/
client
/
src
/
variants
/
Eightpieces.js
diff --git
a/client/src/variants/Eightpieces.js
b/client/src/variants/Eightpieces.js
index
465fbea
..
1033a5a
100644
(file)
--- a/
client/src/variants/Eightpieces.js
+++ b/
client/src/variants/Eightpieces.js
@@
-683,11
+683,7
@@
export const VariantRules = class EightpiecesRules extends ChessRules {
this.movesCount >= 2
? filteredMoves
: filteredMoves.filter(m => {
this.movesCount >= 2
? filteredMoves
: filteredMoves.filter(m => {
- return (
- m.vanish.length <= 1 ||
- m.appear.length != 1 ||
- basicFilter(m, oppCol)
- );
+ return (m.vanish.length <= 1 && basicFilter(m, oppCol));
})
).concat(movesWithSentryPushes);
}
})
).concat(movesWithSentryPushes);
}