+ getCheckSquares(move, c)
+ {
+ const saveKingPos = this.kingPos[c]; //king might explode
+ this.play(move);
+ let res = [ ];
+ if (this.kingPos[c][0] < 0)
+ res = [saveKingPos];
+ else if (this.isAttacked(this.kingPos[c], this.getOppCol(c)))
+ res = [ this.kingPos[c] ]
+ this.undo(move);
+ return res;
+ }
+