backgammon/cup.py

8 lines
156 B
Python
Raw Permalink Normal View History

2018-03-14 13:02:56 +00:00
import random
2018-03-14 13:02:19 +00:00
# on Christoffer's kill list
2018-02-05 21:31:34 +00:00
class Cup:
def roll(self):
2018-03-14 13:02:19 +00:00
return ( random.randrange(1,7),
random.randrange(1,7) )