backgammon/cup.py

11 lines
190 B
Python
Raw Normal View History

2018-02-05 21:31:34 +00:00
from dice import Dice
class Cup:
def __init__(self):
self.dice_1 = Dice
self.dice_2 = Dice
2018-02-05 21:31:34 +00:00
def roll(self):
return [self.dice_1.roll(), self.dice_2.roll()]