From 419c8a99595875682c094580c90e776dc21283a1 Mon Sep 17 00:00:00 2001 From: Daniel Dolezal Date: Thu, 4 Apr 2024 12:53:12 +0200 Subject: [PATCH] add DEGUG Variable to not store current save state --- run.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/run.py b/run.py index 441b3a2..c33d99c 100644 --- a/run.py +++ b/run.py @@ -6,6 +6,7 @@ import lzma, os if __name__ == '__main__': CONFIG = Config("config.json") + DEBUG = False if CONFIG["logging"]["enabled"]: os.makedirs(CONFIG['logging']['file']['path'], exist_ok=True) @@ -24,11 +25,12 @@ if __name__ == '__main__': } game_board = GameBoard(CONFIG, SAVE_STATE_FILE, MAP_FILE) - game_board.find_game_state() + game_board.find_game_state(store_state=not DEBUG) game_board.user_input() print(game_board.get_game_state()) - game_board.save_game_state() + if not DEBUG: + game_board.save_game_state() print() print(game_board.get_player_species())