projects
/
vchess.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
54ec15e
)
Add comment on the 'en passant piece is a pawn'
author
Benjamin Auder
<benjamin.auder@somewhere>
Sat, 21 Mar 2020 10:51:57 +0000
(11:51 +0100)
committer
Benjamin Auder
<benjamin.auder@somewhere>
Sat, 21 Mar 2020 10:51:57 +0000
(11:51 +0100)
client/src/base_rules.js
patch
|
blob
|
blame
|
history
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)
});