import time, os
def play_game():
levels = [(0,“█”),(20,“██”),(40,“████”),(60,“████████”),(80,“████████████████”),(100,“████████████████████████████████”)]
for p,b in levels:
os.system(‘cls’ if os.name==‘nt’ else ‘clear’)
print(“◢━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━◣”)
print(f"{p}% {b}“)
print(“◢━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━◣”)
time.sleep(0.6)
print(” Welcome to my world:skull:")
door = input("Choose the blue door 🔵 or the red door 🔴?\n╰┈➤")
if door != "blue":
print("⛌ You chose the wrong door! The game is over ⛌")
return False
button = input("You've passed safely, and now several buttons appear in front of you. What will you choose: blue 🔵, red 🔴, or white ⚪\n╰┈➤")
if button == "blue" or button == "red":
print("⛌ After choosing this button, a gate opened beneath you and dropped you into lava. The game is over ⛌")
return False
elif button == "white":
print("Congratulations! After overcoming numerous challenges, facing difficult decisions, and navigating through unexpected twists, you have finally triumphed! 🎉 Your journey wasn't easy, but your choices, your courage, and your determination have led you to this moment of victory. Every obstacle you encountered only made you stronger, and every decision you made shaped the path that brought you here. You've proven that persistence, strategy, and a little bit of luck can turn the impossible into reality. Now, as you stand at the peak of your adventure, bask in the glory of your well-earned success. Well done on being the ultimate champion")
return True
else:
print("⛌ Invalid choice. The game is over ⛌")
return False
while True:
if play_game():
break
else:
replay = input(“Would you like to try again? (yes/no)\n╰┈➤”)
if replay.lower() != “yes”:
print(“Thanks for playing!”)
break