Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print("Welcome to my island!")
- print("""There are two doors in front of you:
- πͺ A red door and πͺ a blue door.""")
- door = input("Which door do you want to open? \n").lower()
- if door == "red":
- print("Great! Now you entered a room.")
- print("You found three boxes: π white, π black, π green")
- box = input("Which box do you open? \n").lower()
- if box == "white":
- print("Oops! You opened a box filled with snakes πππ")
- elif box == "black":
- print("Oops! You opened a box filled with spiders π·οΈπ·οΈπ·οΈ")
- elif box == "green":
- print("Congratulations! You found the treasure! π°π°π°")
- else:
- print("Invalid choice! π€·ββοΈ")
- elif door == "blue":
- print("Oops! You chose the crocodile door πππ")
- print("Game Over!")
- else:
- print("Invalid choice! π€·ββοΈ")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement