import itertools


def calc_permutations(num_dice):
# ----------- The result of this function is used in all other functions ----------- #
    """
    calculates all the different permutations for a certain number of dice
    """
    hex_options = [1,2,3,4,5,6]

    #One Liner
    #permutations = [r for r in itertools.product(*(num_dice*[hex_options]))] 
    
    ## One Liner Broken Down 
    #Create list of hex_option lists of lenght num_dice
    all_dice = num_dice * [hex_options]
    #Create cartesianc prodcut using itertools
    cart_prod = itertools.product(*all_dice)
    #Populate a list from the cartesian product iterator
    permutations = [r for r in cart_prod]

    return permutations