import { shuffle } from "@/utils/alea";
export class RococoRules extends ChessRules {
+
static get HasFlags() {
return false;
}
return ChessRules.PIECES.concat([V.IMMOBILIZER]);
}
+ static get Lines() {
+ return [
+ [[1, 1], [1, 9]],
+ [[1, 9], [9, 9]],
+ [[9, 9], [9, 1]],
+ [[9, 1], [1, 1]]
+ ];
+ }
+
getPpath(b) {
if (b[1] == "m")
//'m' for Immobilizer (I is too similar to 1)
this.kingPos["w"] = [i, k];
break;
default: {
- const num = parseInt(position[i].charAt(j));
+ const num = parseInt(position[i].charAt(j), 10);
if (!isNaN(num)) k += num - 1;
}
}
if (move.vanish.length > 1 && move.appear[0].p != V.KING) notation += "X";
return notation;
}
+
};