m.appear[0].p = V.ROOK;
for (let ppiece of [V.KNIGHT, V.BISHOP, V.QUEEN]) {
let mp = JSON.parse(JSON.stringify(m));
m.appear[0].p = V.ROOK;
for (let ppiece of [V.KNIGHT, V.BISHOP, V.QUEEN]) {
let mp = JSON.parse(JSON.stringify(m));
// Base method is fine because a stunned king (which won't be detected)
// can still castle after going back to normal.
super.postPlay(move);
// Base method is fine because a stunned king (which won't be detected)
// can still castle after going back to normal.
super.postPlay(move);
this.kingPos[move.vanish[kIdx].c] = [-1, -1];
move.stunned = JSON.stringify(this.stunned);
// Array of stunned stage 1 pieces (just back to normal then)
this.kingPos[move.vanish[kIdx].c] = [-1, -1];
move.stunned = JSON.stringify(this.stunned);
// Array of stunned stage 1 pieces (just back to normal then)
this.kingPos[move.vanish[kIdx].c] =
[move.vanish[kIdx].x, move.vanish[kIdx].y];
}
this.kingPos[move.vanish[kIdx].c] =
[move.vanish[kIdx].x, move.vanish[kIdx].y];
}