def start_game(): print("Welcome to the Adventure Game!") print("You find yourself in a dark forest. You can go left or right.") choice = input("Which way do you want to go? (left/right): ").strip().lower() if choice == "left": encounter_wolf() elif choice == "right": encounter_river() else: print("Invalid choice. Please try again.") start_game() def encounter_wolf(): print("\nYou encounter a wild wolf!") print("1. Try to scare it away.") print("2. Run away.") choice = input("What do you want to do? (1/2): ") if choice == "1": print("You bravely try to scare the wolf, and it runs away! You are safe.") elif choice == "2": print("You run away as fast as you can. The wolf chases you, but you manage to escape!") else: print("Invalid choice. Please try again.") encounter_wolf() def encounter_river(): print("\nYou come across a serene river.") print("1. Try to swim across.") print("2. Look for a bridge.") choice = input("What do you want to do? (1/2): ") if choice == "1": print("You bravely swim across the river. It's cold, but you make it!") elif choice == "2": print("You find a bridge and safely cross the river.") else: print("Invalid choice. Please try again.") encounter_river() if __name__ == "__main__": start_game()