Searched refs:thisKing (Results 1 – 1 of 1) sorted by relevance
1097 function CheckLegalityKing(thisKing) { argument1098 if ((mvFromCol >= 0) && (mvFromCol != PieceCol[MoveColor][thisKing])) { return false; }1099 if ((mvFromRow >= 0) && (mvFromRow != PieceRow[MoveColor][thisKing])) { return false; }1100 if (Math.abs(PieceCol[MoveColor][thisKing]-mvToCol) > 1) { return false; }1101 if (Math.abs(PieceRow[MoveColor][thisKing]-mvToRow) > 1) { return false; }