Initial commit

This commit is contained in:
2025-08-28 04:58:22 +00:00
commit 2ae337dcb7
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