tonsbrah
welp I survived
 
 
:ne::sweet_home::sweet_home::sweet_home:
Currently Offline
Artwork Showcase
artwork from Xroulen
<life version="1.3" encoding="trying" />
class Person:
def __init__(self):
self.will_to_live = 100 # Starting with wanting to live

def existing(self, hours):
self.will_to_live -= hours * 5 # Will to live decreases by 5 units per hour
if self.will_to_live <= 0:
return f"Person.exe has stopped responding due to overload. Will to live: {self.will_to_live}%."
return f"Living... Will to live level at {self.will_to_live}%."

def takeXanx(self, bars):
if self.will_to_live <= 0:
return f"Error: Cannot process xanx - system already crashed. Will to live: {self.will_to_live}%."
will_increase = bars * 5
self.will_to_live = min(100, self.will_to_live + will_increase)
return f"Taking xanx... Will to Live increased to {self.will_to_live}%."

def sleep(self, hours):
if hours == 15:
self.will_to_live = max(0, self.will_to_live - hours * 5)
return f"Excessive sleep, additional stress acquired. Will to live: {self.will_to_live}%."
self.will_to_live = max(0, self.will_to_live - hours * 5)
return f"Sleeping for {hours} hours... Will to live now at {self.will_to_live}%."

# Creating an instance of Person
dev = Person()

# Running the methods and capturing the outcomes
existing_outcome = dev.existing(12) # 12 hours of existing
xanx_outcome = dev.takeXanx(3) # Taking 3 bars of xanx
sleep_outcome = dev.sleep(15) # 15 hours of sleep

existing_outcome, xanx_outcome, sleep_outcome
Comments
airkimchee 2 Dec, 2023 @ 1:49pm 
HI
ladyxdemi 26 Nov, 2023 @ 12:10am 
hehehehe hai <3