100 Days of Code: The Complete Python Pro Bootcamp Day 3.
My code:
print("Cyberspear Presents\nThe Path to the Lost Treasure\nStory written by Chatgpt\nCode written by Denis Durban")
print("You stand before the entrance to a dark, foreboding forest, rumored to be the resting place of a long-lost treasure. Legends say only the bravest—and most cunning—will survive to claim it. The wind howls, and the trees sway as you step forward, knowing that every choice you make could be your last.")
lvl1 = input("You walk deeper into the forest and come to a fork in the path. To your left, the trail is dark and overgrown, with the faint sound of whispering voices. To your right, the trees are thinner, and the air feels colder. Choose left or right: ")
lvl1_lowercase = lvl1.lower()
if lvl1_lowercase == "left":
print("You take the left path, drawn by the whispers that seem to beckon you closer. You get consumed by the whispers. They draw you into the darkness, and you vanish without a trace.\nGame Over")
elif lvl1_lowercase == "right":
lvl2 = input("You decide to go right, where the chilling air feels like a warning. The right path leads you closer to your goal, and you press on without hesitation. After walking for a while, you come to a wide river. There’s an old, shaky bridge crossing it, but it looks fragile. To the left of the river, there’s a large tree with a hollow in its trunk. You notice a faint glimmer of something on the other side of the river. Choose: cross or investigate: ")
lvl2_lowercase = lvl2.lower()
if lvl2_lowercase == "cross":
print("The bridge collapses beneath your feet as you cross, and you fall into the river below, lost forever.\nGame Over")
elif lvl2_lowercase == "investigate":
print("You investigate the tree hollow, hoping it might lead to a safer route. The tree hollow reveals a hidden passage, guiding you safely past the river.")
lvl3 = input("As you step away from the tree, you suddenly hear movement behind you. Turning quickly, you spot a shadowy figure blocking your way. It offers you a choice: 'One path leads to glory, the other to doom.' The figure then disappears into the shadows. Follow or Ignore: ")
lvl3_lowercase = lvl3.lower()
if lvl3_lowercase == "ignore":
print("You decide to ignore the figure and continue down the path alone. Ignoring the figure proves fatal as the path ahead collapses, trapping you in a dark, endless pit.\nGame Over")
elif lvl3_lowercase == "follow":
print("You follow the figure's last known direction, hoping it might lead to the treasure. The door opens into a hidden chamber that brings you a step closer to the treasure.")
lvl4 = input("The path ahead leads you to a dark cave. The air smells damp and stale, but you can hear the faint sound of clinking metal echoing from within. To the left of the cave, there’s a small door hidden behind vines. To the right, a narrow tunnel beckons you, lit by a flickering glow. Cave or door: ")
lvl4_lowercase = lvl4.lower()
if lvl4_lowercase == "cave":
print("You choose to enter the cave, following the sound of metal. The treasure is cursed, and when you approach from the left, the chest collapses, sealing your fate forever.\nGame Over")
elif lvl4_lowercase == "door":
print("You approach the chest from the right side, convinced that this is the correct way. Approaching from the right, you open the chest to find the treasure—and the power you've been seeking. You’ve made it! Congratulations! You are rich!!")