Add unambiguous section in the PGN + some fixes + code formatting and fix typos
[vchess.git] / client / src / variants / Knightrelay1.js
index f032e21..626519c 100644 (file)
@@ -5,6 +5,8 @@ export class Knightrelay1Rules extends ChessRules {
     return false;
   }
 
+  // TODO: IsGoodPosition to check that 2 knights are on the board...
+
   getPotentialMovesFrom([x, y]) {
     let moves = super.getPotentialMovesFrom([x, y]);
 
@@ -118,7 +120,8 @@ export class Knightrelay1Rules extends ChessRules {
     const finalSquare = V.CoordsToSquare(move.end);
     const piece = this.getPiece(move.start.x, move.start.y);
 
-    // Since pieces and pawns could move like knight, indicate start and end squares
+    // Since pieces and pawns could move like knight,
+    // indicate start and end squares
     let notation =
       piece.toUpperCase() +
       initSquare +