|
|
@ -0,0 +1,137 @@
|
|
|
|
|
|
|
|
import random
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
welcome_message = "Heeyyyyyyyy! Welcome to afterlife! As you can imagine you are dead. You are in a shinning white cube. You could say that is a waiting room. You can not see the limits of this room. You can not say even if it is a cube. I tell you so and you have to believe me. This is how it works here, otherwise go away and make your own game and rules! The light can be really harmful for your eyes, so you have to move on quickly, otherwise you are going to loose your sight! And believe me, it is really important as in the real west culture. So let’s find out where you belong in the after life..."
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
room = [ "knife", "heavy rock", "magic carpet" , "stairs" ]
|
|
|
|
|
|
|
|
bag = ["plenty of emptiness"]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def look():
|
|
|
|
|
|
|
|
room_string = " , ".join(room)
|
|
|
|
|
|
|
|
message = f"You are in this white cube room. You cannot see the boundaries. All you can see is: { room_string }"
|
|
|
|
|
|
|
|
return message
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def run():
|
|
|
|
|
|
|
|
messages = [ "Wheereeee???" , "gggdddbbbfkhthgvryhftghroyh!!! You broke your leg! You are trapped in eternity!" , "..............." , "---------" , "You constantly fall onto the wall" ]
|
|
|
|
|
|
|
|
message = random.choice(messages)
|
|
|
|
|
|
|
|
return message
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def get(obj):
|
|
|
|
|
|
|
|
if obj in room:
|
|
|
|
|
|
|
|
room.remove(obj)
|
|
|
|
|
|
|
|
bag.append(obj)
|
|
|
|
|
|
|
|
message = f"You took { obj }."
|
|
|
|
|
|
|
|
else:
|
|
|
|
|
|
|
|
message = f"You will not find { obj } in here!"
|
|
|
|
|
|
|
|
return message
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def defaultReply():
|
|
|
|
|
|
|
|
messages = [ "Hell is the other people, ha? I cannot see anybody else in here!" ,"Be pretty. Your girlfriends comrades are coming to save you. " "Sisyphus would laugh with you", "Stop playig stupid games and return to work. The hell is out there waiting for you" , "la la la la la la ", "If you had burn the rich, now you would enjoy a place in paradise.", "The queen here is not dead." ]
|
|
|
|
|
|
|
|
message = random.choice(messages)
|
|
|
|
|
|
|
|
return message
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#------------------
|
|
|
|
|
|
|
|
#START OF THE GAME
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
print(welcome_message)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
message = "... Are you going to do something? I am bored seeing you standing like this!"
|
|
|
|
|
|
|
|
print(message)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
while True:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
reply = input()
|
|
|
|
|
|
|
|
# reply = "get lamp"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
command = reply.split()
|
|
|
|
|
|
|
|
# command = ["get", "lamp"]
|
|
|
|
|
|
|
|
#print(f"[DEBUG] Your command: { command }")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if len(command) >= 1:
|
|
|
|
|
|
|
|
action = command[0]
|
|
|
|
|
|
|
|
else:
|
|
|
|
|
|
|
|
action = ""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if len(command) >= 2:
|
|
|
|
|
|
|
|
obj = command[1]
|
|
|
|
|
|
|
|
else:
|
|
|
|
|
|
|
|
obj = ""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
##print(f"[DEBUG] Your action: { action }")
|
|
|
|
|
|
|
|
#print(f"[DEBUG] Your object: { obj }")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if "look" in action or "walk" in action:
|
|
|
|
|
|
|
|
print(look())
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
elif "fly" in action:
|
|
|
|
|
|
|
|
print("You are flying inside the white cube.You are still entrapped, stupid! At least is fun...")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
elif "jump" in action:
|
|
|
|
|
|
|
|
print("You just broke your leg! You are staying here forever seeing yourself in pain.")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
elif "under" in action:
|
|
|
|
|
|
|
|
print("There is a trap door that leads to an elevator")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
reply = input()
|
|
|
|
|
|
|
|
if "open" in reply:
|
|
|
|
|
|
|
|
print("the elevator door is open!")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
reply = input()
|
|
|
|
|
|
|
|
if "get in" in reply:
|
|
|
|
|
|
|
|
print("You are now inside the elevator. There is a comfortable armchair and hot chocolate. There is a button under the cup.")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
reply = input()
|
|
|
|
|
|
|
|
if "press" in reply:
|
|
|
|
|
|
|
|
print("Your favourite song is playing. The ride starts. The elevator will go up and down forever. At least your package includes unlimited chocolate. Children labour will haunt you forever. Byyeee")
|
|
|
|
|
|
|
|
else:
|
|
|
|
|
|
|
|
print("?")
|
|
|
|
|
|
|
|
else:
|
|
|
|
|
|
|
|
print("What are you planning to do?")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
else:
|
|
|
|
|
|
|
|
print("Do something!")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
elif "go down" in action:
|
|
|
|
|
|
|
|
print("wanna go down the stairs?")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
reply = input()
|
|
|
|
|
|
|
|
if "yes" in reply:
|
|
|
|
|
|
|
|
print("The stairs lead you to a mirror room. What are you going to do apart from watching your pitty self,narcissus?")
|
|
|
|
|
|
|
|
else:
|
|
|
|
|
|
|
|
print(defaultReply())
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if "break" in action:
|
|
|
|
|
|
|
|
print("How???!!! Do you have something in mind?")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if "rock" in reply:
|
|
|
|
|
|
|
|
print("YEEEEESSSSS!!! You did it! You are now in a beautiful glade of a pine forest. The birds are singing. You are approaching a cluster of pine trees to sit next to the log to get some rest. You deserve it... Suddenly... Ooooooohhh! This is not a forest. This is a wallpaper. There are no trees. The birds are not real. It is a hidden speaker-sound recorder. You can at least record yourself to make you some company. What would you say?")
|
|
|
|
|
|
|
|
else:
|
|
|
|
|
|
|
|
print("get a weapon")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
else:
|
|
|
|
|
|
|
|
print(defaultReply())
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
elif "get" in action:
|
|
|
|
|
|
|
|
if obj:
|
|
|
|
|
|
|
|
print(get(obj))
|
|
|
|
|
|
|
|
else:
|
|
|
|
|
|
|
|
print("GET A F*****NG OBJECT")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
elif "exit" in action:
|
|
|
|
|
|
|
|
break
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
elif "inventory" in action:
|
|
|
|
|
|
|
|
print(bag)
|
|
|
|
|
|
|
|
else:
|
|
|
|
|
|
|
|
print(defaultReply())
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
print("byyyyeeeeee")
|