projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add Sittuyin + Doublemove2. A few fixes. TODO: fix Ambiguous bugs and playing on...
[vchess.git]
/
client
/
src
/
variants
/
Doublemove1.js
diff --git
a/client/src/variants/Marseille.js
b/client/src/variants/Doublemove1.js
similarity index 96%
rename from
client/src/variants/Marseille.js
rename to
client/src/variants/Doublemove1.js
index
90084dc
..
7d1ee4d
100644
(file)
--- a/
client/src/variants/Marseille.js
+++ b/
client/src/variants/Doublemove1.js
@@
-1,7
+1,7
@@
import { ChessRules } from "@/base_rules";
import { randInt } from "@/utils/alea";
import { ChessRules } from "@/base_rules";
import { randInt } from "@/utils/alea";
-export class
Marseille
Rules extends ChessRules {
+export class
Doublemove1
Rules 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;
@@
-31,8
+31,6
@@
export class MarseilleRules extends ChessRules {
return undefined;
})];
this.scanKings(fen);
return undefined;
})];
this.scanKings(fen);
- // Extract subTurn from turn indicator: "w" (first move), or
- // "w1" or "w2" white subturn 1 or 2, and same for black
this.turn = parsedFen.turn;
this.subTurn = 1;
}
this.turn = parsedFen.turn;
this.subTurn = 1;
}
@@
-156,9
+154,6
@@
export class MarseilleRules extends ChessRules {
super.postUndo(move);
}
super.postUndo(move);
}
- // NOTE: GenRandInitFen() is OK,
- // since at first move turn indicator is just "w"
-
static get VALUES() {
return {
p: 1,
static get VALUES() {
return {
p: 1,