function allDiceSelected(){
    let allDiceSelected = true;
    $("#table .die").each(function(){
        if (!$(this).hasClass("active")){
            allDiceSelected = false;
            return;
        }
    });
    return allDiceSelected;
}
// fnc to check if all dice are selected
fnc to check if all dice are selected
fnc to check if all dice are selected
function allDiceSelected(){
    let allDiceSelected = true;
    $("#table .die").each(function(){
        if (!$(this).hasClass("active")){
            allDiceSelected = false;
            return;
        }
    });
    return allDiceSelected;
}
function allDiceSelected ( ) { let allDiceSelected = true ; $ ( "#table .die" ) . each ( function ( ) { if ( ! $ ( this ) . hasClass ( "active" ) ) { allDiceSelected = false ; return ; } } ) ; return allDiceSelected ; }
fnc to check if all dice are selected
fnc to check if all dice are selected