# Object-oriented code to get started with Dice import random class Dice: def __init__(self): # create empty dice, then roll to set them self.dice = [0]*5 self.rollAll() def roll(self, positions): # update the values for all positions in the positions list for pos in positions: self.dice[pos] = random.randint(1,6) def rollAll(self): # update values for all five positions self.roll(range(5)) def values(self): # return a copy of the list of dice values return self.dice[:] def score(self): # Return the poker description and score for the current set # of dice values. This is what you need to implement. # Possibilities with values are: # "Five of a Kind", 30 # "Four of a Kind", 15 # "Full House", 12 (3 and 2 of two different kinds) # "Three of a Kind", 8 # "Straight", 20 (one of each from 1-5 or 2-6) # "Two Pairs", 5 # "Garbage", 0 return "Garbage", 0