Initial commit

This commit is contained in:
2025-08-31 23:51:00 +00:00
commit bcebaae18b
9 changed files with 325 additions and 0 deletions

17
die.py Normal file
View File

@@ -0,0 +1,17 @@
# die.py
# ------
# By MWC Contributors
# Implments a Die class.
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