Binary Converter Put in 10 digits, (0 or 1) Then it will convert it from Binary Code to the value of it. import time # Initialization x, y = 5, 4 z = x + y sensor = x + y sense = ["sensor", x, y] # 'sensor' as a string or variable? Added both logic-wise Points = 0 alert = ["calm"] upgradesBought = [] CPS = 0 # Clicks Per Second / Auto-points Clickpower = 1 text = [] print("--- Game Starting ---") # Main Game Loop (simulating 20 cycles) for turn in range(20): # 1. Handle Upgrades and CPS Logic if "CPS" in upgradesBought: Points += CPS # 2. Sensor and Alert Logic # Checking your condition: sensor in sense OR x in sense... if (sensor in sense) or (x in sense): print(f"Depth check: 1 foot deep, 2 feet deep") if sensor in sense: print("Sensor activated for 1 second") else: # If sensor is missing, trigger alert if "calm" in alert: alert = ["ALERT!!"] print("Status: ALERT!!") # Reset alert back to calm alert = ["calm"] print("Status: Returning to calm...") # 3. Point Generation Logic if sensor not in sense: Points += 1 # 4. Milestone Logic if Points >= 3 and "CPSq" not in upgradesBought: upgradesBought.append("CPSq") CPS = 1 text.append("Your first upgrade!") print(">>> Upgrade Unlocked: CPSq!") if CPS >= 10: Clickpower += 1 # Print Status print(f"Turn {turn} | Points: {Points} | CPS: {CPS} | Upgrades: {upgradesBought}") time.sleep(0.5) # Slows it down so you can read it
Project made by @Projectier