Added simulation files.

This commit is contained in:
cheezedoodle2
2023-04-03 23:19:16 -07:00
parent b7d548800e
commit 0f10f22345
5 changed files with 109 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
from Simulation import Simulation
class HotdogSimulation(Simulation):
def __init__(self) -> None:
self.ticks_left = 5
def start(self):
print(f"DEBUG: simulation started.")
def use(self):
print(f"DEBUG: someone ate the hot dog! 🌭")
def tick(self):
self.ticks_left -= 1
if self.ticks_left == 0:
print(f"DEBUG: simulation out of ticks, expiring.")
return False
return True
def stop(self):
print(f"DEBUG: simulation stopped.")
pass