import { randInt } from "@/utils/alea";
export class HiddenqueenRules extends ChessRules {
+
// Analyse in Hiddenqueen mode makes no sense
static get CanAnalyze() {
return false;
this.kingPos[oppCol] = [move.vanish[1].x, move.vanish[1].y];
}
+ underCheck(color) {
+ if (this.kingPos[color][0] < 0) return false;
+ return super.underCheck(color);
+ }
+
getCurrentScore() {
const color = this.turn;
if (this.kingPos[color][0] < 0)
else notation = finalSquare;
return notation;
}
+
};