Add Sittuyin + Doublemove2. A few fixes. TODO: fix Ambiguous bugs and playing on...
[vchess.git] / 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)
@@ -1,7 +1,7 @@
 import { ChessRules } from "@/base_rules";
 import { randInt } from "@/utils/alea";
 
-export class MarseilleRules extends ChessRules {
+export class Doublemove1Rules extends ChessRules {
   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);
-    // 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;
   }
@@ -156,9 +154,6 @@ export class MarseilleRules extends ChessRules {
     super.postUndo(move);
   }
 
-  // NOTE:  GenRandInitFen() is OK,
-  // since at first move turn indicator is just "w"
-
   static get VALUES() {
     return {
       p: 1,