Game 3
Game 3
def print_pause(message):
print(message)
time.sleep(2)
def intro():
print_pause("Welcome to Amazing Adventures!")
print_pause("You find yourself in a mysterious land filled with danger and
treasure.")
print_pause("Your goal is to explore and survive. Let's begin!\n")
def choose_path():
print_pause("You stand at a crossroads with three paths ahead.")
print_pause("1. The Dark Forest")
print_pause("2. The Mystic Cave")
print_pause("3. The Abandoned Village")
if choice == "1":
dark_forest()
elif choice == "2":
mystic_cave()
elif choice == "3":
abandoned_village()
else:
print_pause("Invalid choice. Please select 1, 2, or 3.")
choose_path()
def dark_forest():
print_pause("\nYou venture into the Dark Forest.")
print_pause("The trees are thick, and the air is filled with strange sounds.")
print_pause("Suddenly, a wild beast appears!")
if fight_or_flee == "fight":
print_pause("You bravely face the beast and defeat it with your courage!")
print_pause("You find a hidden treasure behind the beast's lair.
Congratulations!\n")
elif fight_or_flee == "flee":
print_pause("You run back to safety, but the adventure is far from over.\
n")
choose_path()
else:
print_pause("Invalid choice. The beast attacks while you hesitate.")
print_pause("Game over.\n")
def mystic_cave():
print_pause("\nYou enter the Mystic Cave.")
print_pause("The cave is dark and filled with glowing crystals.")
print_pause("You find a mysterious artifact on a pedestal.")
if take_or_leave == "yes":
print_pause("As you take the artifact, the cave begins to collapse!")
print_pause("You escape just in time, and the artifact grants you magical
powers. Well done!\n")
elif take_or_leave == "no":
print_pause("You leave the artifact untouched and safely exit the cave.")
print_pause("Perhaps you will return later. The adventure continues.\n")
choose_path()
else:
print_pause("Invalid choice. The cave collapses around you.")
print_pause("Game over.\n")
def abandoned_village():
print_pause("\nYou arrive at the Abandoned Village.")
print_pause("The place is eerie, with broken buildings and silence.")
print_pause("You find a journal that tells of a hidden treasure nearby.")
if search_or_leave == "yes":
print_pause("After a thorough search, you find the treasure hidden under
the well.")
print_pause("You are victorious!\n")
elif search_or_leave == "no":
print_pause("You decide to leave the village and return to safety.")
print_pause("Your adventure continues elsewhere.\n")
choose_path()
else:
print_pause("Invalid choice. You wander aimlessly until night falls.")
print_pause("Game over.\n")
def play_game():
intro()
choose_path()