Exemplo n.º 1
0
def torch_action():
    print("You turn it on and it's very bright!\n")
    if input("Do you want to take it [Y N]? ") == "Y":
        H5.append_locations([Rotunda])
        Pocket.append("A red Torch")
        return True
    return False
Exemplo n.º 2
0
def mainloop():
    global here
    while True:
        screen_clear()
        msg = ""
        print(here)
        print("\n\n")
        print("If you want to search around, type search or ls")
        print("If you want to view map, type map")
        print("If you want to view pocket, type pocket")
        print("If you want to go somewhere else, "
              "type goto _location_ or cd _location_")
        print()

        inp = input("Your choice: ")
        match_obj = re.search(r"^(goto|cd) .*", inp)
        if re.search(r"^(search|ls)$", inp):
            msg = here.search()
        elif match_obj:
            new_loc = inp[len(match_obj.group(1)) + 1:]
            msg, here = here.goto(new_loc)
        elif re.search(r"^map$", inp):
            print("Close map to continue")
            makemap(here)
        elif re.search(r"^pocket$", inp):
            Pocket.show()
        elif re.search(r"^exit$", inp):
            if input("Type exit again to exit, anything else to go back: ") == "exit":
                close_game()
        else:
            msg = "Invalid Input"
        if (msg):
            timed_print(msg, 3)
Exemplo n.º 3
0
def samrat_inno_action():
    im_show("rocket.jpg")
    print("Maybe I can 3D print this and see if it works")
    if input("Do you want to steal - no, borrow - this? [Y N] ") == "Y":
        Pocket.append("Rocket.jpg")
        return True
    return False
Exemplo n.º 4
0
def clue2Action():
    opensite("clue2.html")
    a = input("What's the password? ")
    if a == "acceptme":
        Pocket.append("Clue - Large Hadron Collider")
        return True
    return False
Exemplo n.º 5
0
def printer_3d_action():
    print("Printer shows a message 'Please input the blueprint'")
    print("You should wait for the MS19 kids to finish...\n\nOr you could just print the blueprints now...")
    if input("Do you want to print the blueprint? [Y N] ") == "Y":
        Pocket.append("3D Printed Rocket")
        return True
    return False
Exemplo n.º 6
0
def clue1Action():
    opensite('clue1.html')
    a = input("What's the key? ")
    if a == "TUr!ng":
        Pocket.append("Clue - Costly Machines, easy clues...")
        return True
    return False
Exemplo n.º 7
0
def room69_action():
    im_show('69.jpg')
    Pocket.append("Clue - Go to Shopping Complex")
    print("Let's take a picture of this.")
    a = input("Do you want to continue[Y/N]")
    if(a == "Y"):
        _ = copyFile("69.jpg")
    return False
Exemplo n.º 8
0
def clue3Action():
    print("PENALTY at 45 degrees")
    im_show("cube.jpg")
    print("Message: C.Amjg md eclcrgaq")  # change this please
    a = input("What does that mean? ")
    if a == "E.Coli of genetics":  # change this please
        Pocket.append("Clue - E.Coli of genetics")
        return True
    return False
Exemplo n.º 9
0
def clue7Action():
    print("There is a file. Save it in your PC.")
    a = input("Would you like to proceed?[Y/N]")
    if(a == "Y"):
        _ = copyFile("image.jpg")
    b = input("Enter the number if you have found it: ")
    if(b == "690"):
        Pocket.append("Note - Truly, 69 is an important number")
        Animal_Center.append_locations([Room69])
        return True
    return False
Exemplo n.º 10
0
def clue5Action():
    i = 0
    question_prompt = ["Cell's leader says 'Carry on!' suspiciously...",
                       "Is the Spanish Crown alive?", "Hiding in a plaza having a handicap",
                       "Chris, who left the hotel, heads the Public Relations Forum at Caribou Biosciences"]
    answers = ["KARYON", "CORONAVIRUS", "ZAHAVI", "CRISPR"]
    while i < len(question_prompt):
        print(question_prompt[i])
        ans = input("Enter your answer: ")
        if ans.upper() == answers[i]:
            i += 1
        else:
            return False
    Pocket.append("Bio Pop quiz answer sheet - Should show friends in Rotunda")
    return True
Exemplo n.º 11
0
def clue6Action():
    print("""
            The quest is to find the direction of your life...\n
            Two roads... first towards the accelerator and second towards jordon\n
            And let your octaves fill the keanu reeves movie\n
            Apply some contrast of free will and maybe lose the negativity ...\n
            You should be good to go now\n
            """)

    ans = input("Enter your password: "******"22":
        Pocket.append(
            "Clue - H-ate me or love me, you need to Study with me")
        Pocket.append("Key to VH Terrace")
        VH.append_locations([VH_Terrace])
        return True
    return False
Exemplo n.º 12
0
def lhckey_action():
    if input("Pick it?[Y N] ") == "Y":
        Outside_LHC.append_locations([LHC])
        Pocket.append("LHC Key")
        return True
    return False
Exemplo n.º 13
0
def clue4Action():
    dst = copyFile("mutations.pdf")
    if dst:
        Pocket.append("mutations.pdf in " + dst)
        return True
    return False