X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=client%2Fsrc%2Fbase_rules.js;fp=client%2Fsrc%2Fbase_rules.js;h=6502679a3fb973fc326aa3aea2c4c90756fd6ab6;hb=cb1165b46266a73b2a1f211a9c98470b1ceaacd3;hp=e9ea7bc10e189f285100e5337b786f6b07805611;hpb=44cf6ba723579cbb0ff84cfda94062583fadfe95;p=vchess.git diff --git a/client/src/base_rules.js b/client/src/base_rules.js index e9ea7bc1..6502679a 100644 --- a/client/src/base_rules.js +++ b/client/src/base_rules.js @@ -163,6 +163,7 @@ 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; @@ -533,7 +534,6 @@ export const ChessRules = class ChessRules { // Squares of white and black king: this.kingPos = { w: [-1, -1], b: [-1, -1] }; const fenRows = V.ParseFen(fen).position.split("/"); - const startRow = { 'w': V.size.x - 1, 'b': 0 }; for (let i = 0; i < fenRows.length; i++) { let k = 0; //column index on board for (let j = 0; j < fenRows[i].length; j++) {