This commit is contained in:
2026-06-24 12:57:21 -04:00
parent cdfd01b053
commit 47d2d7bc67
7 changed files with 63 additions and 16 deletions

View File

@@ -1,12 +1,15 @@
from untitled import generation, ui
from untitled import generation, ui, rules
def adoption():
print("Welcome to the shelter!")
choice = "Reroll"
while choice == "Reroll":
choices = generation.generate_cat_choices()
choice = ui.select(
"Please choose a cat to adopt!",
list(ui.Choice(cat[0], cat[1]) for cat in choices) + ["Reroll"],
)
name = None
while not name:
choice = "Reroll"
while choice == "Reroll":
choices = generation.generate_cat_choices()
choice = ui.select(
"Please choose a cat to adopt:",
[ui.Choice(cat[0], cat[1]) for cat in choices] + ["Reroll"],
)
name = ui.text("Please choose a name for your cat:")