ckrbd.js
//For reg pyr, use width = 1 plus a power of two
For reg pyr, use width = 1 plus a power of two
For reg pyr use width = 1 plus a power of two
function sumLevels(width){
    var r = 0;
    for (let i=0;i<width;i++){
        for (let j=0;j<width;j++){
            if (i >0 || j>0) r+= level(i,j);
        }
    }
    return r;
}
function sumLevels ( width ) { var r = 0 ; for ( let i = 0 ; i < width ; i ++ ) { for ( let j = 0 ; j < width ; j ++ ) { if ( i > 0 || j > 0 ) r += level ( i , j ) ; } } return r ; }
For reg pyr, use width = 1 plus a power of two
For reg pyr use width = 1 plus a power of two