Add comment on the 'en passant piece is a pawn'
authorBenjamin Auder <benjamin.auder@somewhere>
Sat, 21 Mar 2020 10:51:57 +0000 (11:51 +0100)
committerBenjamin Auder <benjamin.auder@somewhere>
Sat, 21 Mar 2020 10:51:57 +0000 (11:51 +0100)
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)
       });