import time def intro(): print("Welcome to the Interactive Story: Betrayal of Lenovo and Peter Griffin\n") time.sleep(2) print("You find yourself in a world of technology and humor, where unexpected twists await you.") time.sleep(2) print("Are you ready to embark on this thrilling adventure?\n") time.sleep(1) start = input("Enter 'yes' to begin or 'no' to exit: ").lower() if start == 'yes': chapter1() else: print("\nGoodbye, maybe next time!") def chapter1(): print("\n--- Chapter 1: The Tech Giant's Secret ---\n") time.sleep(2) print("You, a skilled programmer, are approached by Lenovo, a prominent tech giant, for a top-secret project.") time.sleep(2) print("Lenovo promises fame and fortune in exchange for your expertise in coding.") time.sleep(2) print("However, something feels off...") time.sleep(2) print("Do you:\n") choice = input("A) Accept Lenovo's offer\nB) Decline Lenovo's offer\n\nYour choice (A/B): ").lower() if choice == 'a': print("\nYou decide to accept Lenovo's offer, eager for the promised rewards.") time.sleep(2) print("Little do you know, a web of deceit is about to unfold...") time.sleep(2) chapter2() elif choice == 'b': print("\nYou decline Lenovo's offer, wary of their intentions.") time.sleep(2) print("You continue your journey, seeking opportunities elsewhere.") time.sleep(2) print("However, fate has other plans for you...") time.sleep(2) chapter2() else: print("\nInvalid choice. Please select 'A' or 'B'.") chapter1() def chapter2(): print("\n--- Chapter 2: The Unexpected Alliance ---\n") time.sleep(2) print("While exploring new job opportunities, you encounter Peter Griffin, the beloved character from Family Guy.") time.sleep(2) print("Peter offers you a chance to join his comedy troupe, promising adventure and laughter.") time.sleep(2) print("Do you:\n") choice = input("A) Accept Peter's offer\nB) Decline Peter's offer\n\nYour choice (A/B): ").lower() if choice == 'a': print("\nYou decide to join Peter's comedy troupe, excited for the new adventures ahead.") time.sleep(2) print("Little do you know, Lenovo's shadow looms over your newfound alliance...") time.sleep(2) chapter3() elif choice == 'b': print("\nYou politely decline Peter's offer, determined to pursue your own path.") time.sleep(2) print("As you bid farewell to Peter, a sense of foreboding fills the air...") time.sleep(2) chapter3() else: print("\nInvalid choice. Please select 'A' or 'B'.") chapter2() def chapter3(): print("\n--- Chapter 3: The Betrayal Unfolds ---\n") time.sleep(2) print("In a shocking turn of events, you discover that Lenovo and Peter Griffin have formed an unholy alliance.") time.sleep(2) print("Their goal? To dominate the world of technology and comedy, crushing anyone who stands in their way.") time.sleep(2) print("As a key player in their sinister scheme, you face a crucial decision...\n") time.sleep(2) choice = input("A) Join Lenovo and Peter's alliance\nB) Expose their betrayal and fight against them\n\nYour choice (A/B): ").lower() if choice == 'a': print("\nYou succumb to the allure of power and join Lenovo and Peter's nefarious alliance.") time.sleep(2) print("Together, you wreak havoc on the world, leaving chaos and destruction in your wake.") time.sleep(2) print("Congratulations, you have chosen the path of darkness...") time.sleep(2) ending() elif choice == 'b': print("\nYou refuse to be a pawn in Lenovo and Peter's wicked game.") time.sleep(2) print("With courage and determination, you gather allies to expose their betrayal and put an end to their tyranny.") time.sleep(2) print("The battle for justice begins...") time.sleep(2) ending() else: print("\nInvalid choice. Please select 'A' or 'B'.") chapter3() def ending(): print("\n--- The End ---\n") time.sleep(2) print("Congratulations on completing the Interactive Story: Betrayal of Lenovo and Peter Griffin!") time.sleep(2) print("Your choices have shaped the outcome of the story.") time.sleep(2) print("Thank you for playing!\n") # Start the game intro()