add DEGUG Variable to not store current save state
This commit is contained in:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user