This commit is contained in:
Hope
2025-08-19 08:29:03 -04:00
parent 3b8676a37a
commit fdf145e2c1
11 changed files with 208 additions and 1 deletions

12
die.py Normal file
View File

@@ -0,0 +1,12 @@
from random import randint
class Die:
def __init__(self):
self.roll()
def __str__(self):
return str(self.face)
def roll(self):
self.face = randint(1, 6)
return self.face