Mainloop+house

This commit is contained in:
2026-04-11 17:40:34 -04:00
parent f38fd535fb
commit 6b23548b26
3 changed files with 43 additions and 4 deletions

View File

@@ -65,3 +65,17 @@ def shelter(include_welcome=True):
return shelter(include_welcome=False)
print(f"You pick up {name}, {name} is ready to leave the shelter.")
return Cat(name, traits)
def house(cat: Cat):
print("Welcome to your house!")
while True:
match ui.select(
"Please choose an option", ["Check on your cat", "Leave your house"]
):
case "Check on your cat":
print(
f"{cat.name} - a {cat.traits["size"]} {cat.traits["color"]} with {cat.traits["eyes"]} eyes"
)
case "Leave your house":
break