housekeeping and quit choices

This commit is contained in:
2017-08-15 03:00:52 -07:00
parent 99ddd28bc8
commit e99390deb3
3 changed files with 58 additions and 16 deletions

View File

@@ -18,23 +18,28 @@ function main()
print(" ----------------------------------\n")
print("By: Justin and Lindsay\n\n")
print(intro_text)
print("Here are your options. \n")
print(intro_text, "\n")
print("Here are your options. \n\n")
print("Option 1 - Go back to sleep. \n")
print("Option 2 - Check the fridge. \n")
print("Option 2 - Check the fridge. \n\n")
choice = input("Choose an option by pressing its number: ")
if choice == "1"
print(intro_option1outcome_text)
game_end()
elseif choice == "2"
print(intro_option2outcome_text)
print(intro_option2outcome_text, "\n")
elseif choice == "q"
exit()
end
print("Here are your options. \n")
print("Option 1 - Drink the 40 oz King Cobra. \n")
print("Option 2 - Drink the 2 liter bottle of Sun Drop. \n")
print("Option 3 - Drink the purple drink in order to indulge your desire to have
your Dave Chappelle moment. \n")
your Dave Chappelle moment. \n\n")
choice = input("Choose an option by pressing its number: ")
if choice == "1"
@@ -45,8 +50,11 @@ function main()
print(fridge_option2outcome_text)
leavehouse()
elseif choice == "3"
print(fridge_option3outcome_text)
print(fridge_option3outcome_text, "\n")
game_end()
elseif choice == "q"
exit()
end
print("Here are your options. \n")
@@ -59,7 +67,13 @@ function main()
print(car_option1outcome_text)
game_end()
elseif choice == "2"
print(car_option2outcome_text)
print(car_option2outcome_text)
elseif choice == "q"
exit()
else
print(wrong_key_error)
end
end