Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion shinchan.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,16 @@ def dance(self):
print(f"\n{self.name} is too tired to dance.")
self.check_for_food()

def go_to_school(self): # Go to School
if self.stamina >= 30:
self.stamina -= 30
self.score += 50
print(f"\n{self.name} is going to school! Stamina is now {self.stamina}.")
print(f"Score: {self.score}")
else:
print(f"\n{self.name} is too tired to go to school.")
self.check_for_food()

def go_to_park(self):
if self.stamina >= 25:
self.stamina -= 25
Expand Down Expand Up @@ -112,4 +122,3 @@ def play_video_games(self): # New function added
else:
print(f"\n{self.name} is too tired to play video games.")
self.check_for_food()