added game end
This commit is contained in:
parent
1f9cb30436
commit
a00a4b2ffa
@ -1,3 +1,22 @@
|
|||||||
|
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()
|
function dui()
|
||||||
|
|
||||||
print("Here are your options. \n")
|
print("Here are your options. \n")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user