From 45f79d0fff3d70ba064635e44a89ffd31aaf90f7 Mon Sep 17 00:00:00 2001 From: Benjamin Auder Date: Fri, 23 Apr 2021 07:46:58 +0200 Subject: [PATCH] Fix Football --- client/src/variants/Football.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 } } -- 2.44.0