import { randInt } from "@/utils/alea";
export class ApocalypseRules extends ChessRules {
+
+ static get Options() {
+ return null;
+ }
+
static get PawnSpecs() {
return Object.assign(
{},
if (['P','p'].includes(row[i])) pawns[row[i]]++;
if (V.PIECES.includes(row[i].toLowerCase())) sumElts++;
else {
- const num = parseInt(row[i]);
+ const num = parseInt(row[i], 10);
if (isNaN(num)) return false;
sumElts += num;
}
setFlags(fenflags) {
this.penaltyFlags = {
- 'w': parseInt(fenflags[0]),
- 'b': parseInt(fenflags[1])
+ 'w': parseInt(fenflags[0], 10),
+ 'b': parseInt(fenflags[1], 10)
};
}
V.CoordsToSquare(move.end)
);
}
+
};