diff --git a/src/quest-for-sundrop.jl b/src/quest-for-sundrop.jl index 3f60b91..4c4ed1f 100755 --- a/src/quest-for-sundrop.jl +++ b/src/quest-for-sundrop.jl @@ -9,6 +9,8 @@ Description: Main game file include("../lib/io-extra.jl") include("../lib/story.jl") +include("../lib/functions.jl") + function main() test = " @@ -19,8 +21,49 @@ function main() print("-----------------------------------\n") print("| The Quest for Sun Drop |\n") print(" ----------------------------------\n") - print("By: Justin and Lindsay\n") + print("By: Justin and Lindsay\n\n") + + print(intro_text) + print("Here are your options. \n") + print("Option 1 - Go back to sleep. \n") + print("Option 2 - Check the fridge. \n") + choice = input("Choose an option by pressing its number: ") + + if choice == "1" + print(intro_option1outcome_text) + main() + elseif choice == "2" + print(intro_option2outcome_text) + 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") + choice = input("Choose an option by pressing its number: ") + + if choice == "1" + print(fridge_option1outcome_text) + leavehouse() + dui() + elseif choice == "2" + print(fridge_option2outcome_text) + leavehouse() + elseif choice == "3" + print(fridge_option3outcome_text) + main() + end + + print("Here are your options. \n") + print("Option 1 - Go to your local Safeway. \n") + 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) + elseif choice == "2" + print(car_option2outcome_text) + end - println(test, "\n") end main() \ No newline at end of file