-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDarkForest.py
More file actions
176 lines (149 loc) · 4.43 KB
/
Copy pathDarkForest.py
File metadata and controls
176 lines (149 loc) · 4.43 KB
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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
#darkforest console game
#Created by Christos Mappouras
from sys import exit
def start():
print("""
Welcome to the dark forest
You must find all the correct answers to reach 10points
Once you reach 10points you will get out alive from the dark forest
Be careful! You have only 1 chance to answer!
See you on the other side.
""")
points = 0;
print(f"\nCurrent points: {points}")
username = input("Type your Username: ")
# QUESTION: 1
print(f"\nHello {username},")
print("Let's Begin, Shall we?")
q1 = input("> ")
if q1 == "yes":
print("\nGood!")
points += 1;
print(f"Current points: {points}")
print("\nLets move to the 2nd question")
else:
print("\nI HATE YOU")
print("Come on, You died...\n")
exit(0)
# QUESTION: 2
print("\n\nDid you ever tried vodka?")
q1 = input("> ")
if q1 == "yes":
print("\nGood!")
points += 1;
print(f"Current points: {points}")
print("\nLets move to the 3rd question")
else:
print("\nI HATE YOU")
print("Come on, You died...\n")
exit(0)
# QUESTION: 3
print("\n\nWhat is the result of 5x6?")
q1 = input("> ")
if q1 == "30":
print("\nGood!")
points += 1;
print(f"Current points: {points}")
print("\nLets move to the 4th question")
else:
print("\nI HATE YOU")
print("Come on, You died...\n")
exit(0)
# QUESTION: 4
print("\n\nWhat is the result of 111 (binary to decimal system)?")
q1 = input("> ")
if q1 == "7":
print("\nGood!")
points += 1;
print(f"Current points: {points}")
print("\nLets move to the 5th question")
else:
print("\nI HATE YOU")
print("Come on, You died...\n")
exit(0)
# QUESTION: 5
print("\n\nWhat is the result of 64 (decimal to octal system)?")
q1 = input("> ")
if q1 == "100":
print("\nGood!")
points += 1;
print(f"Current points: {points}")
print("\nLets move to the 6th question")
else:
print("\nI HATE YOU")
print("Come on, You died...\n")
exit(0)
# QUESTION: 6
print("\n\nWhat is the result of 420 (hexadecimal to decimal system)?")
q1 = input("> ")
if q1 == "1056":
print("\nGood!")
points += 1;
print(f"Current points: {points}")
print("\nLets move to the 7th question")
else:
print("\nI HATE YOU")
print("Come on, You died...\n")
exit(0)
# QUESTION: 7
print("\n\nWhat is the result of 999 (decimal to hexadecimal system)?")
q1 = input("> ")
if q1 == "3E7":
print("\nGood!")
points += 1;
print(f"Current points: {points}")
print("\nLets move to the 8th question")
else:
print("\nI HATE YOU")
print("Come on, You died...\n")
exit(0)
# QUESTION: 8
print("\n\nWhat is the result of 1567 (decimal to binary system)?")
q1 = input("> ")
if q1 == "11000011111":
print("\nGood!")
points += 1;
print(f"Current points: {points}")
print("\nLets move to the 9th question")
else:
print("\nI HATE YOU")
print("Come on, You died...\n")
exit(0)
# QUESTION: 9
print("\n\nWhat is the opposite of good? (Think like Cindy Sheeran)")
q1 = input("> ")
if q1 == "apathy":
print("\nGood!")
points += 1;
print(f"Current points: {points}")
print("\nLets move to the final question")
else:
print("\nI HATE YOU")
print("Come on, You died...\n")
exit(0)
# QUESTION: 10
print("\n\nAlways think ...... the box?")
q1 = input("> ")
if q1 == "outside":
print("\nGood!")
points += 1;
print(f"Current points: {points}")
class color:
PURPLE = '\033[95m'
CYAN = '\033[96m'
DARKCYAN = '\033[36m'
BLUE = '\033[94m'
GREEN = '\033[92m'
YELLOW = '\033[93m'
RED = '\033[91m'
BOLD = '\033[1m'
UNDERLINE = '\033[4m'
END = '\033[0m'
print(color.BOLD + "\n\n\nCONGRATULATION! You made it out alive!\n\n\n\n" + color.END)
print("Made by Chris Mappouras")
exit(0)
else:
print("\nI HATE YOU")
print("Come on, You died...\n")
exit(0)
start()