Skip to content

Commit

Permalink
chore: remove comments and logs
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentfrochot committed Nov 21, 2024
1 parent e4fb51c commit 13fbbc1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/variants/abalone/fen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,13 @@ export const parseBoardFen = (rules: Rules) => (boardPart: string): Result<Board
const square = file + rank * files;
const piece = charToPiece(c);
if (!piece) {
console.log('char:' + c);
return Result.err(new FenError(InvalidFen.Board));
}
board.set(square, piece);
file++;
}
}
}
if (rank !== 0 /*|| file !== files*/) return Result.err(new FenError(InvalidFen.Board));
if (rank !== 0) return Result.err(new FenError(InvalidFen.Board));
return Result.ok(board);
};

0 comments on commit 13fbbc1

Please sign in to comment.