From: Benjamin Auder Date: Fri, 23 Apr 2021 05:46:58 +0000 (+0200) Subject: Fix Football X-Git-Url: https://git.auder.net/doc/html/packages.html?a=commitdiff_plain;h=45f79d0fff3d70ba064635e44a89ffd31aaf90f7;p=vchess.git Fix Football --- 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 } }