rfpotrero / The-Gem-in-the-Tower

0 stars 1 forks source link

Create generic dice_roll function #7

Closed rfpotrero closed 2 years ago

rfpotrero commented 2 years ago

def dice_roll(number_of_dices): """ Generic functions to resolve any other roll dices """ results =[] for dice in range(number_of_dices): roll = random.randint(1,6) results.append(roll) dice_result = sum[results] return dice_result