projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[Pandemonium] Forgot reserve in FEN
[vchess.git]
/
client
/
src
/
variants
/
Doublemove2.js
diff --git
a/client/src/variants/Doublemove2.js
b/client/src/variants/Doublemove2.js
index
f9d5e4f
..
287f949
100644
(file)
--- a/
client/src/variants/Doublemove2.js
+++ b/
client/src/variants/Doublemove2.js
@@
-2,6
+2,7
@@
import { ChessRules } from "@/base_rules";
import { randInt } from "@/utils/alea";
export class Doublemove2Rules extends ChessRules {
import { randInt } from "@/utils/alea";
export class Doublemove2Rules extends ChessRules {
+
static IsGoodEnpassant(enpassant) {
const squares = enpassant.split(",");
if (squares.length > 2) return false;
static IsGoodEnpassant(enpassant) {
const squares = enpassant.split(",");
if (squares.length > 2) return false;
@@
-234,4
+235,5
@@
export class Doublemove2Rules extends ChessRules {
// TODO: not always the best move played (why ???)
return doubleMove;
}
// TODO: not always the best move played (why ???)
return doubleMove;
}
+
};
};