# Simple Interactive Adventure Game def start_adventure(): print("Welcome to the Adventure Game!") print("You find yourself in a dark forest. There are two paths ahead.") choice1 = input("Do you want to go left or right? (left/right): ").lower() if choice1 == "left": print("You walk down the left path and encounter a friendly elf.") choice2 = input("Do you talk to the elf or ignore him? (talk/ignore): ").lower() if choice2 == "talk": print("The elf gives you a magical sword. You continue your journey and find a treasure chest. You win!") elif choice2 == "ignore": print("You ignore the elf and continue walking. You fall into a pit and lose. Game over.") else: print("Invalid choice. Game over.") elif choice1 == "right": print("You walk down the right path and encounter a hungry wolf.") choice2 = input("Do you fight the wolf or run away? (fight/run): ").lower() if choice2 == "fight": print("You bravely fight the wolf and win. You find a hidden cave with treasure. You win!") elif choice2 == "run": print("You run away safely but get lost in the forest. Game over.") else: print("Invalid choice. Game over.") else: print("Invalid choice. Game over.") # Start the adventure start_adventure()