Untitled
unknown
plain_text
22 days ago
2.7 kB
11
Indexable
# Introduction print("Welcome to the Adventure Game!") print("You are on a quest to find a hidden treasure deep inside a dangerous forest.") print("Along the way, you will face challenges and must make decisions to survive.") print("Let the adventure begin!\n") # Start of the adventure # Step 1: Entering the Forest enter_forest = input("Do you want to enter the dark forest? (yes/no): ").lower() if enter_forest == "yes": print("\nYou bravely step into the dark forest. It's eerie and quiet.") # Step 2: Choosing a Path path_choice = input("You reach a fork in the path. Do you want to go 'left' or 'right'? ").lower() if path_choice == "left": print("\nYou walk down the left path and come across a deep river.") # Step 3: Crossing the River cross_river = input("Do you want to try to swim across the river? (yes/no): ").lower() if cross_river == "yes": print("\nYou bravely swim across the river but get swept away by the current.") print("You struggle to survive but manage to find the shore.") # Step 4: Finding Shelter find_shelter = input("You're tired. Do you want to search for shelter? (yes/no): ").lower() if find_shelter == "yes": print("\nYou find a small cave and rest for the night. You survive!") print("Congratulations! You made it through the first challenge of the adventure.") else: print("\nYou decide not to find shelter, but the cold night takes a toll on you.") print("Sadly, you do not survive the night.") else: print("\nYou decide not to cross the river. You walk along its edge and find a bridge.") print("Crossing the bridge, you reach a beautiful meadow.") print("You rest there and survive! Congratulations!") elif path_choice == "right": print("\nYou walk down the right path and encounter a hungry wolf!") # Step 3: Facing the Wolf fight_wolf = input("Do you want to fight the wolf? (yes/no): ").lower() if fight_wolf == "yes": print("\nYou fight bravely but the wolf is too strong.") print("You manage to escape but are injured. You survive, but just barely.") else: print("\nYou run away from the wolf and find a safe hiding place.") print("You survive and continue on your journey. Well done!") else: print("\nYou wander off the path and get lost in the forest.") print("After days of wandering, you find your way back to the start. Try again!") else: print("\nYou decide not to enter the forest. Perhaps another time...")
Editor is loading...
Leave a Comment