X-Git-Url: https://git.auder.net/?p=vchess.git;a=blobdiff_plain;f=client%2Fsrc%2Fvariants%2FFootball.js;fp=client%2Fsrc%2Fvariants%2FFootball.js;h=eddad1070a90f74a7b0d5c7d6061b02ac725149c;hp=5b0b16df1b91c31667f313d8829980581521f558;hb=45f79d0fff3d70ba064635e44a89ffd31aaf90f7;hpb=f897a4ef9f30a51755e9180cf6ba9f9c2557616f diff --git a/client/src/variants/Football.js b/client/src/variants/Football.js index 5b0b16df..eddad107 100644 --- 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) { - 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 } }