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
/
Football.js
diff --git
a/client/src/variants/Football.js
b/client/src/variants/Football.js
index
5b0b16d
..
eddad10
100644
(file)
--- a/
client/src/variants/Football.js
+++ b/
client/src/variants/Football.js
@@
-290,7
+290,10
@@
export class FootballRules extends ChessRules {
outerLoop: for (let i=0; i < V.size.x; i++) {
for (let j=0; j < V.size.y; j++) {
if (this.board[i][j] != V.EMPTY && this.getColor(i, j) == c) {
outerLoop: for (let i=0; i < V.size.x; i++) {
for (let j=0; j < V.size.y; j++) {
if (this.board[i][j] != V.EMPTY && this.getColor(i, j) == c) {
- moves.push(super.getBasicMove([x, y], [i, j]));
+ moves.push({
+ appear: [], vanish: [],
+ start: { x: x, y: y }, end: { x: i, y: j }
+ });
if (computer) break outerLoop; //no choice for computer
}
}
if (computer) break outerLoop; //no choice for computer
}
}