import { randInt } from "@/utils/alea";
export class TakenmakeRules extends ChessRules {
+
setOtherVariables(fen) {
super.setOtherVariables(fen);
// Stack of "last move" only for intermediate captures
this.kingPos[c][0] = move.appear[0].x;
this.kingPos[c][1] = move.appear[0].y;
}
- super.updateCastleFlags(move, piece);
+ super.updateCastleFlags(move, piece, c);
}
undo(move) {
delete moves[mIdx]["next"];
return [moves[mIdx], move2];
}
+
};