From d84ed0c792be3256be3f4de3633a14164c8e97dc Mon Sep 17 00:00:00 2001 From: Owen Feldman Date: Fri, 17 Apr 2026 18:29:24 -0400 Subject: [PATCH] Better idea --- game.py | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/game.py b/game.py index f1603ef..7dcb503 100644 --- a/game.py +++ b/game.py @@ -35,10 +35,18 @@ class Game: return False def options_menu(self): + options = ["Back"] + if not os.path.exists("WEB_VERSION"): + options[0:0] = [ # AI came up with this, what the heck is [0:0] + "Save", + "Save and quit", + "Settings", + "Quit", + ] while True: match ui.select( "Please choose an option", - ["Save", "Save and quit", "Quit", "Settings", "Back"], + options, ): case "Save": data.save.save(self.cat) @@ -116,9 +124,11 @@ class Game: print(f"{self.cat.name} says bye") return - options = ["New Game", "Quit"] + options = ["New Game"] if os.path.exists("saves") and not os.path.exists("WEB_VERSION"): options.insert(0, "Load Game") + if not os.path.exists("WEB_VERSION"): + options.append("Quit") print("Welcome to Whiskerbound!") choice = ui.select("Please choose an option", choices=options) @@ -137,5 +147,3 @@ class Game: if __name__ == "__main__": game = Game() game.run() - if os.path.exists("WEB_VERSION"): - print("You have quit the game, please reload the page to play again.")