Initialize a six sided dice
(self)
| 7 | NUM_SIDES = 6 |
| 8 | |
| 9 | def __init__(self): |
| 10 | """Initialize a six sided dice""" |
| 11 | self.sides = list(range(1, Dice.NUM_SIDES + 1)) |
| 12 | |
| 13 | def roll(self): |
| 14 | return random.choice(self.sides) |
nothing calls this directly
no outgoing calls
no test coverage detected