backgammon/cup.py

11 lines
194 B
Python

from dice import Dice
class Cup:
def __init__(self):
self.dice_1 = Dice
self.dice_2 = Dice
def roll(self):
return [self.dice_1.roll(), self.dice_2.roll()]