Home
last modified time | relevance | path

Searched refs:thisKing (Results 1 – 1 of 1) sorted by relevance

/plugin/pgn4web/pgn4web/
H A Dpgn4web.js1097 function CheckLegalityKing(thisKing) { argument
1098 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; }