projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add comment on the 'en passant piece is a pawn'
[vchess.git]
/
client
/
src
/
base_rules.js
diff --git
a/client/src/base_rules.js
b/client/src/base_rules.js
index
f957400
..
f51e8d0
100644
(file)
--- a/
client/src/base_rules.js
+++ b/
client/src/base_rules.js
@@
-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)
});