From e642e426b9abb1fee6326801a86e508c7e94fff1 Mon Sep 17 00:00:00 2001 From: Tanner Collin Date: Tue, 9 Mar 2021 10:29:09 +0000 Subject: [PATCH] Add exit function --- game.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/game.py b/game.py index 1bf8082..d1d2a22 100644 --- a/game.py +++ b/game.py @@ -852,6 +852,11 @@ class Game: data = data.replace('^', '.') reply = str(eval(data)) + if command == 'exit': + import os + os._exit(0) + + except BaseException as e: import traceback