Add comment on the 'en passant piece is a pawn'
[vchess.git] / client / src / base_rules.js
index f957400..f51e8d0 100644 (file)
@@ -679,6 +679,7 @@ export const ChessRules = class ChessRules {
       enpassantMove.vanish.push({
         x: x,
         y: epSquare.y,
+        // Captured piece is usually a pawn, but next line seems harmless
         p: this.getPiece(x, epSquare.y),
         c: this.getColor(x, epSquare.y)
       });