@aceprogramer/

Just A Normal Adventure

Python

No description

fork
loading
Files
  • main.py
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
import time
import os
from termcolor import cprint

def opt(x):
    return input(x).lower()
def tprint(x, y = 0.2):
    time.sleep(y)
    print(x)
def clear():
    os.system('clear')
def end():
    print("The end")
    time.sleep(3)
    clear()
    story()
def space(number = 1):
    for i in range(number):
        print()


#Story
def story():
        
    space()
    cprint("Welcome to this completely normal text based story. To play type in your answer, the questions and the replies from past questions are hints to the answer.", "cyan")
    space()
    cprint("Rules:", "red")
    cprint("1. Do not look at the source code. \n2. Have fun :D", "red")
    space()
    tprint("Ok | I hope I pass | NOOOOOOOO | Sure it is ;)", 2)
    q1 = opt("This is a test: ").lower()

    if q1 != "sure it is ;)":
        clear()
        if q1 == "i hope i pass":
            print("You will")
            space()
        if q1 == "noooooooo":
            print("I agree")
            space()
        tprint("That was a freebie", 0.2)
        space()
        q2 = opt("What was the last problem: ").lower()
        if q2 == "a freebie":
            clear()
            tprint("Too easy", 0.2)
            space()
            q3 = opt("What is this?: ")
            if q3 == "a question" or q3 == "a pronoun":
                clear()
                tprint("Ok smarty pants.", 0.2)
                space()
                q4 = opt("Click the black dot: ")
                if q4 != "~":
                    clear()
                    tprint("LoLz, there is no dot and you can't click stuff")
                    space()
                    tprint("10 1 3 17 | 74 65 67 75 | Dumb | SmFja2ll")
                    q5 = opt("What is Jacq: ")
                    if q5 == "10 1 3 17":
                        clear()
                        tprint("That is correct")
                        space()
                        tprint("Password | Let me in | MEAT | Open sezme | What")
                        q6 = opt("What is the password?: ").lower()
                        if q6 == "what" or q6 == "meat":
                            clear()
                            tprint("Am I making this too hard?")
                            end()
                    elif q5 == "dumb":
                        tprint("Jacq is not dumb.")
                        time.sleep(3)
    elif q1 == "sure it is ;)":
        clear()
        tprint("It is, and you just failed. :D", 0.2)

    cprint("Wrong!", "red")
    time.sleep(3)
    clear()
    story()

story()