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;
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;
}
super.postUndo(move);
}
- // NOTE: GenRandInitFen() is OK,
- // since at first move turn indicator is just "w"
-
static get VALUES() {
return {
p: 1,