Untitled

mail@pastecode.io avatar
unknown
plain_text
a month ago
2.3 kB
2
Indexable
Never
import time
import random

def present_day():
    print("You are in the present day.")
    time.sleep(1)
    print("You find a mysterious time-traveling device.")
    time.sleep(1)
    print("Where do you want to go?")
    print("1. Past")
    print("2. Future")
    choice = input("Enter your choice (1/2): ")
    
    if choice == '1':
        return past()
    elif choice == '2':
        return future()
    else:
        print("Invalid choice. Please try again.")
        return present_day()

def past():
    print("You have traveled to the past.")
    time.sleep(1)
    print("You encounter historical figures and events.")
    time.sleep(1)
    print("Choose your action:")
    print("1. Interact with historical figures")
    print("2. Collect historical artifacts")
    choice = input("Enter your choice (1/2): ")
    
    if choice == '1':
        print("You interact with historical figures.")
        time.sleep(1)
        print("Some appreciate your presence, while others are suspicious.")
        time.sleep(1)
        return present_day()
    elif choice == '2':
        print("You collect historical artifacts.")
        time.sleep(1)
        print("These artifacts will help you in your journey.")
        time.sleep(1)
        return present_day()
    else:
        print("Invalid choice. Please try again.")
        return past()

def future():
    print("You have traveled to the future.")
    time.sleep(1)
    print("The future is filled with advanced technology and unknown challenges.")
    time.sleep(1)
    print("Choose your action:")
    print("1. Explore futuristic technology")
    print("2. Face futuristic challenges")
    choice = input("Enter your choice (1/2): ")
    
    if choice == '1':
        print("You explore futuristic technology.")
        time.sleep(1)
        print("Some technologies amaze you, while others are beyond comprehension.")
        time.sleep(1)
        return present_day()
    elif choice == '2':
        print("You face futuristic challenges.")
        time.sleep(1)
        print("Adapting to the unknown challenges, you learn valuable skills.")
        time.sleep(1)
        return present_day()
    else:
        print("Invalid choice. Please try again.")
        return future()

# Start the game
present_day()
Leave a Comment