quest-for-sundrop/lib/functions.jl
2017-08-15 00:07:51 -07:00

43 lines
1.1 KiB
Julia

function game_end()
while true
print("Your quest ends here. Or does it?\n\n")
choice = input("Would you like to restart your quest? Y/N: ")
if choice == "Y"
main()
elseif choice == "y"
main()
elseif choice == "N"
exit()
elseif choice == "n"
exit()
else
print("That was not one of your choices.")
end
end
end
function dui()
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("The cops pull you over and smell malt liquor on your breath.
You have gotten a DUI. \n")
main()
elseif choice == "2"
print("The cops pull you over and smell malt liquor on your breath.
You have gotten a DUI. \n")
main()
end
end
function leavehouse()
print("You get in your car to find glass bottled Sun Drop. \n")
end