index.js
/**
     * Remove connections and line by from and to circles
     * Also decrease weight of adjecent squares and change weights
     * @param {Number} from
     * @param {Number} to
     */
Remove connections and line by from and to circles
Also decrease weight of adjecent squares and change weights
@param {Number} from
@param {Number} to
Remove connections and line by from and to circles Also decrease weight of adjecent squares and change weights @param { Number } from @param { Number } to
function eraseLine(from, to){
        circles[from].unconnect(to);
        circles[to].unconnect(from);
        let id = Line.getLineId(from, to, CIRCLE_COUNT);
        lines[id].hide();
        for (let i = 0; i < lines[id].squares.length; i++) {
            let squareId = lines[id].squares[i];
            squares[squareId].weight--;
        }
        updateSquaresLinesWeight();
    }
function eraseLine ( from , to ) { circles [ from ] . unconnect ( to ) ; circles [ to ] . unconnect ( from ) ; let id = Line . getLineId ( from , to , CIRCLE_COUNT ) ; lines [ id ] . hide ( ) ; for ( let i = 0 ; i < lines [ id ] . squares . length ; i ++ ) { let squareId = lines [ id ] . squares [ i ] ; squares [ squareId ] . weight -- ; } updateSquaresLinesWeight ( ) ; }
Remove connections and line by from and to circles
 Also decrease weight of adjecent squares and change weights
 @param {Number} from
 @param {Number} to
Remove connections and line by from and to circles Also decrease weight of adjecent squares and change weights @param { Number } from @param { Number } to
// Update square weight