projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add unambiguous section in the PGN + some fixes + code formatting and fix typos
[vchess.git]
/
client
/
src
/
variants
/
Suction.js
diff --git
a/client/src/variants/Suction.js
b/client/src/variants/Suction.js
index
ac3aeb0
..
aa28f59
100644
(file)
--- a/
client/src/variants/Suction.js
+++ b/
client/src/variants/Suction.js
@@
-20,9
+20,10
@@
export class SuctionRules extends ChessRules {
}
static ParseFen(fen) {
}
static ParseFen(fen) {
- return Object.assign({}, ChessRules.ParseFen(fen), {
- cmove: fen.split(" ")[4]
- });
+ return Object.assign(
+ ChessRules.ParseFen(fen),
+ { cmove: fen.split(" ")[4] }
+ );
}
static IsGoodFen(fen) {
}
static IsGoodFen(fen) {
@@
-95,7
+96,7
@@
export class SuctionRules extends ChessRules {
Math.abs(epSquare.y - y) == 1
) {
let enpassantMove = this.getBasicMove([x, y], [epSquare.x, epSquare.y]);
Math.abs(epSquare.y - y) == 1
) {
let enpassantMove = this.getBasicMove([x, y], [epSquare.x, epSquare.y]);
- const oppCol = V.GetOppCol(
color
);
+ const oppCol = V.GetOppCol(
this.turn
);
enpassantMove.vanish.push({
x: x,
y: epSquare.y,
enpassantMove.vanish.push({
x: x,
y: epSquare.y,