projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix games ordering in MyGames, fix en-passant mistake in Rifle variant
[vchess.git]
/
client
/
src
/
variants
/
Recycle.js
diff --git
a/client/src/variants/Recycle.js
b/client/src/variants/Recycle.js
index
9f43ad8
..
73d9166
100644
(file)
--- a/
client/src/variants/Recycle.js
+++ b/
client/src/variants/Recycle.js
@@
-18,6
+18,13
@@
export const VariantRules = class RecycleRules extends ChessRules {
});
}
});
}
+ getEpSquare(moveOrSquare) {
+ if (typeof moveOrSquare !== "object" || move.vanish.length > 0)
+ return super.getEpSquare(moveOrSquare);
+ // Landing move: no en-passant
+ return undefined;
+ }
+
static GenRandInitFen(randomness) {
return ChessRules.GenRandInitFen(randomness) + " 0000000000";
}
static GenRandInitFen(randomness) {
return ChessRules.GenRandInitFen(randomness) + " 0000000000";
}