X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=client%2Fsrc%2Fbase_rules.js;h=da9fab7837622a1dc3fc46ce452da10538d88c66;hb=1cd3e362caa05b60f01cf8b1d4f6bfeafc0be55f;hp=a47b853f439f283a1ee57e419c87afbe17eb4c0f;hpb=933fd1f90a080c1a3e477cc36adebb5e8db8a9d3;p=vchess.git diff --git a/client/src/base_rules.js b/client/src/base_rules.js index a47b853f..da9fab78 100644 --- a/client/src/base_rules.js +++ b/client/src/base_rules.js @@ -1261,7 +1261,7 @@ export const ChessRules = class ChessRules { // TODO: un-ambiguous notation (switch on piece type, check directions...) getNotation(move) { if (move.appear.length == 2 && move.appear[0].p == V.KING) - //castle + // Castle return move.end.y < move.start.y ? "0-0-0" : "0-0"; // Translate final square