X-Git-Url: https://git.auder.net/?p=vchess.git;a=blobdiff_plain;f=client%2Fsrc%2Fvariants%2FSynochess.js;h=52915220d983598cecf25a4454ff4c4684f2c4ee;hp=e5c3213bfeceea530e0b81ee1cb20216aef03be7;hb=dbc79ee67847c36aad6b640b15d25d6fb7f361e5;hpb=95bc4bf5248120712946500416543bbfc6b7ae85 diff --git a/client/src/variants/Synochess.js b/client/src/variants/Synochess.js index e5c3213b..52915220 100644 --- a/client/src/variants/Synochess.js +++ b/client/src/variants/Synochess.js @@ -344,7 +344,6 @@ export class SynochessRules extends ChessRules { let i = x + step[0]; let j = y + step[1]; while (V.OnBoard(i, j) && this.board[i][j] == V.EMPTY) { - moves.push(this.getBasicMove([x, y], [i, j])); i += step[0]; j += step[1]; } @@ -353,6 +352,7 @@ export class SynochessRules extends ChessRules { i += step[0]; j += step[1]; while (V.OnBoard(i, j) && this.board[i][j] == V.EMPTY) { + moves.push(this.getBasicMove([x, y], [i, j])); i += step[0]; j += step[1]; }