#!/usr/bin/julia #= File name: quest-for-sundrop.jl Author: Jil Studios Date: 2017-06-20 Description: Main game file =# include("../lib/io-extra.jl") include("../lib/story.jl") include("../lib/functions.jl") function main() print("-----------------------------------\n") print("| The Quest for Sun Drop |\n") print(" ----------------------------------\n") print("By: Justin and Lindsay\n\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\n") choice = input("\n Choose an option by pressing its number: ") if choice == "1" print(intro_option1outcome_text, "\n") game_end() elseif choice == "2" print(intro_option2outcome_text, "\n") elseif choice == "q" exit() end print("Here are your options. \n\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\n") choice = input("\n Choose an option by pressing its number: ") if choice == "1" print(fridge_option1outcome_text, "\n") leavehouse() dui() elseif choice == "2" print(fridge_option2outcome_text), "\n" leavehouse() elseif choice == "3" print(fridge_option3outcome_text, "\n") game_end() elseif choice == "q" exit() end print("Here are your options. \n \n") print("Option 1 - Go to your local Safeway. \n") print("Option 2 - Go to the closest gas station. \n") choice = input("\n Choose an option by pressing its number: ") if choice == "1" print(car_option1outcome_text, "\n") game_end() elseif choice == "2" print(car_option2outcome_text, "\n") elseif choice == "q" exit() else print(wrong_key_error) end print("Here are your options. \n\n") print("Option 1 - Attempt to hitch a ride with a trucker. \n") print("Option 2 - Purchase a plane ticket to Polaski, Tennessee. \n") choice = input("\n Choose an option by pressing its number: ") if choice == "1" print(tn_option1outcome_text, "\n") elseif choice == "2" print(tn_option2outcome_text, "\n") elseif choice == "q" exit() else print(wrong_key_error) end end main()