From 99ddd28bc885701f8070e8b1bb550fb83149d6f2 Mon Sep 17 00:00:00 2001 From: lindsay Date: Tue, 15 Aug 2017 00:08:02 -0700 Subject: [PATCH] added game ends --- src/quest-for-sundrop.jl | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/quest-for-sundrop.jl b/src/quest-for-sundrop.jl index 02b4301..6410c16 100755 --- a/src/quest-for-sundrop.jl +++ b/src/quest-for-sundrop.jl @@ -26,7 +26,7 @@ function main() if choice == "1" print(intro_option1outcome_text) - main() + game_end() elseif choice == "2" print(intro_option2outcome_text) end @@ -46,16 +46,18 @@ function main() leavehouse() elseif choice == "3" print(fridge_option3outcome_text) - main() + game_end() end print("Here are your options. \n") print("Option 1 - Go to your local Safeway. \n") + main() print("Option 2 - Go to the closest gas station. \n") choice = input("Choose an option by pressing its number: ") if choice == "1" print(car_option1outcome_text) + game_end() elseif choice == "2" print(car_option2outcome_text) end