+ this.castleFlags[c] = [false,false];
+ }
+ else
+ {
+ // Now check if our init rook(s) exploded
+ if (Math.abs(move.end.x-firstRank) <= 1)
+ {
+ if (Math.abs(move.end.y-this.INIT_COL_ROOK[oppCol][0]) <= 1)
+ this.castleFlags[c][0] = false;
+ if (Math.abs(move.end.y-this.INIT_COL_ROOK[oppCol][1]) <= 1)
+ this.castleFlags[c][1] = false;
+ }