2025-01-12 16:19:11 +01:00
|
|
|
import random
|
2025-01-13 21:52:14 +01:00
|
|
|
from os import system
|
|
|
|
|
2025-01-12 16:19:11 +01:00
|
|
|
|
|
|
|
class Engine:
|
|
|
|
def roll_d20(self):
|
2025-01-13 21:52:14 +01:00
|
|
|
return random.randint(1, 20)
|
2025-01-12 16:19:11 +01:00
|
|
|
|
|
|
|
def roll_d10(self):
|
2025-01-13 21:52:14 +01:00
|
|
|
return random.randint(1, 10)
|
2025-01-12 16:19:11 +01:00
|
|
|
|
|
|
|
def roll_d6(self):
|
2025-01-13 21:52:14 +01:00
|
|
|
return random.randint(1, 6)
|