1
0
Fork 0

fix hard exit option

This commit is contained in:
Lili (Tlapka) 2022-02-24 13:45:12 +01:00
parent 066c7f3305
commit 22652402e1
1 changed files with 2 additions and 4 deletions

View File

@ -351,16 +351,14 @@ def game_loop():
print("If you want to exit the assistant, please use the `exit` command.") print("If you want to exit the assistant, please use the `exit` command.")
except KeyboardInterrupt: except KeyboardInterrupt:
print("You sent a keyboard interrupt to the program.") print("You sent a keyboard interrupt to the program.")
print("Would you like to exit? yes/no") print("Would you like to exit?")
print("This will NOT save your log or end the game. yes/no")
confirmation = input() confirmation = input()
confirmation = confirmation.lower() confirmation = confirmation.lower()
if confirmation in ("y", "yes"): if confirmation in ("y", "yes"):
abort_game(game, hint_giver, flag_checker)
print("Exiting...")
return return
else: else:
print("Not exiting. Continuing normal operation.") print("Not exiting. Continuing normal operation.")
print("Next time, please use the `exit` command to exit.")
if __name__ == "__main__": if __name__ == "__main__":