import { randInt } from "@/utils/alea";
export class Progressive1Rules extends ChessRules {
+
static get HasEnpassant() {
return false;
}
}
play(move) {
- move.flags = JSON.stringify(this.aggregateFlags());
+ if (V.HasFlags) move.flags = JSON.stringify(this.aggregateFlags());
const color = this.turn;
const oppCol = V.GetOppCol(color);
move.turn = [color, this.subTurn];
for (let i=res.length - 1; i>= 0; i--) this.undo(res[i]);
return res;
}
+
};