projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix Football
[vchess.git]
/
client
/
src
/
variants
/
Alice.js
diff --git
a/client/src/variants/Alice.js
b/client/src/variants/Alice.js
index
16ccb84
..
e33cbdd
100644
(file)
--- a/
client/src/variants/Alice.js
+++ b/
client/src/variants/Alice.js
@@
-169,7
+169,8
@@
export class AliceRules extends ChessRules {
return false;
}
}
return false;
}
}
- } else if (this.board[m.end.x][m.end.y] != V.EMPTY) {
+ }
+ else if (this.board[m.end.x][m.end.y] != V.EMPTY) {
// Attempt to capture
const piece = this.getPiece(m.end.x, m.end.y);
if (
// Attempt to capture
const piece = this.getPiece(m.end.x, m.end.y);
if (
@@
-347,7
+348,7
@@
export class AliceRules extends ChessRules {
}
getNotation(move) {
}
getNotation(move) {
- if (move.appear.length == 2
&& move.appear[0].p == V.KING
) {
+ if (move.appear.length == 2) {
if (move.end.y < move.start.y) return "0-0-0";
return "0-0";
}
if (move.end.y < move.start.y) return "0-0-0";
return "0-0";
}