From d89afc8ff89e0d8de030e4dabd963b013f80221e Mon Sep 17 00:00:00 2001 From: Jacob Date: Tue, 29 Oct 2024 09:55:18 -0500 Subject: [PATCH] A note about your changes. --- main.py | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/main.py b/main.py index df53dae..7234882 100644 --- a/main.py +++ b/main.py @@ -1,5 +1,6 @@ # ClydeBank Coffee Shop Simulator 4000 # Copyright 2022 (C) ClydeBank Media, All Rights Reserved. +# Proving this works import pickle import re @@ -15,7 +16,9 @@ run_game = True if Path(CoffeeShopSimulator.SAVE_FILE).is_file(): # Save game exists, do they want to load it? - response = CoffeeShopSimulator.prompt("There's a saved game. Do you want to load it? (Y/N)", True) + response = CoffeeShopSimulator.prompt( + "There's a saved game. Do you want to load it? (Y/N)", True + ) if re.search("y", response, re.IGNORECASE): # Load the game and run! with open(CoffeeShopSimulator.SAVE_FILE, mode="rb") as f: @@ -24,7 +27,9 @@ # We don't need to run the game again run_game = False else: - print("HINT: If you don't want to see this prompt again, remove the savegame.dat file.\n") + print( + "HINT: If you don't want to see this prompt again, remove the savegame.dat file.\n" + ) if run_game: # Create the game object and run it! @@ -32,4 +37,4 @@ game.run() # Say goodbye! -print("\nThanks for playing. Have a great rest of your day!\n") \ No newline at end of file +print("\nThanks for playing. Have a great rest of your day!\n")