X-Git-Url: https://git.auder.net/pieces/Checkered/cq.svg?a=blobdiff_plain;f=client%2Fsrc%2Fbase_rules.js;h=0a68127f2ae48b75d9a04c05be020787ea8d97e6;hb=73fbcfc85f7ff7d5bfc1aadd0f9fd392f71f7861;hp=f1049b055f64a4745cf88e46f4e824a5484fcabe;hpb=da9e846e41622111a4f877742dc0b35406635b5c;p=vchess.git diff --git a/client/src/base_rules.js b/client/src/base_rules.js index f1049b05..0a68127f 100644 --- a/client/src/base_rules.js +++ b/client/src/base_rules.js @@ -163,7 +163,6 @@ export const ChessRules = class ChessRules { // Check if FEN describes a board situation correctly static IsGoodFen(fen) { -console.log("ddd"); const fenParsed = V.ParseFen(fen); // 1) Check position if (!V.IsGoodPosition(fenParsed.position)) return false; @@ -714,7 +713,7 @@ console.log("ddd"); let j = y + step[1]; while (V.OnBoard(i, j) && this.board[i][j] == V.EMPTY) { moves.push(this.getBasicMove([x, y], [i, j])); - if (oneStep) continue outerLoop; + if (!!oneStep) continue outerLoop; i += step[0]; j += step[1]; }