Skip to content

Instantly share code, notes, and snippets.

@hydrogo
Created June 28, 2017 21:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hydrogo/23bf7164ee64b0b16012eeae36347a8a to your computer and use it in GitHub Desktop.
Save hydrogo/23bf7164ee64b0b16012eeae36347a8a to your computer and use it in GitHub Desktop.
flat_w_cat = {"door": "locked",
"cat": "alive",
"sofa": "clean",
"trays": "clean",
"water_bowl": "full",
"junk_bowl": "full",
"hugs": "done"}
vacation_lenght = 7
for every_day in range(vacation_lenght):
# check door
print("Do you have a key? [yes/no]")
if input() == "yes":
print(">>>")
print("Lucky you, just open the door!")
print("...")
print("Welcome to Flat with the Cat!")
else:
print("You are in trouble if you have lose a key. Run!")
break
# check cat
print("...")
print("Check the cat. Is he here? [yes/no]")
if input() == "yes":
print(">>>")
print("Lucky you, now you have to greet the cat.")
print("Just shut 'Fierce Predator', do not be shy :-)")
else:
print("You are in trouble if you have lose the cat. Run!")
break
# check sofa
print("...")
print("Check the sofa. Is it wet? [yes/no]")
if input() == "yes":
print(">>>")
print("Uh, shit happens! Just go to the next step")
pass
else:
print("You need to praise the cat and give him 1/2 of 'wet food' package ")
# check trays
print("...")
print("Check the trays. Are they full of shit? [yes/no]")
if input() == "yes":
print(">>>")
print("It is just a shit. Get rid of it!")
else:
print("Lucky you! But maybe you need to expand your search...")
# stuff
print("...")
print("Fuf, you are very close to the end!")
print("Please, change water in bowls and add some dry junk food!")
print("...")
print("Everything is OK (food was added, water was changed)? [yes/no]")
while input() == "no":
print(">>>")
print("Cat does not like that kind of jokes. Follow the instructions!")
print("Everything is OK (food was added, water was changed)? [yes/no]")
print("...")
print("Do not forget to hug the cat! It is very important for both of you.")
print("...")
print("The last check!")
for key, value in flat_w_cat.items():
print("Is/are the {} {}".format(key, value) + " [yes, no]")
while input() == "no":
print(">>>")
print("Cat does not like that kind of jokes. Follow the instructions!")
print("Is/are the {} {}".format(key, value) + " [yes, no]")
print(">>>")
print(">>>")
print(">>>")
print("You are my (and his) hero! Thx!")
print("(.)(.)")
print("See you next day!")
print(">>>")
print(">>>")
print(">>>")
print("Do you want to continue cat-o-quiz for a new day? [yes/no]")
if input() == "yes":
pass
else:
print("Chao!")
break
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment