Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
import random
import math
#pause-function
def pause():
ans1 = input("\n<press enter to continue>\n\n")
#quotes
text1 = """ "While some people are born knowing
what they want to do the moment
they take their first breath,
some, like our Human,
wander through life aimless." """
text2 = """She stacks what must be the 50th shelf full of bread and
wonders about what she is supposed to do in life. Was this what her life
had come to? Stacking shelves of bread and other groceries for other
people. While this was a job that she knew needed to be completed, was
it her life’s purpose? #missed out: She barely had enough money to pay for everything
she needed, let alone the things in life we live for."""
text3 = """Like a lot of people, she’d got good grades in school, gone to all the after school
clubs and been told she had unlimited potential. Of course she didn’t
follow her potential, as she is currently watching her reflection in the
tabs that keep the bread packaged."""
text4 = """Almost every fibre of her being
wished she could be somewhere else,
doing something different.
Something that didn’t just contribute
to the endless cycle of sating the
needlessly ravenous shelves."""
text5 = """As she finishes her shift,
her boss walks over."""
#unused quotes
'''
-You’ve stacked them all wrong.
-What? Asks the Human. She’d just stacked the bread, what could she have possibly got wrong?
-They’re in the wrong order, the price tags don’t even match half of these, do them again. Her boss said coldly.
The Human had been a little distracted.
-I wonder why we keep you around, you are nothing. You literally have no purpose!
That was all it took. That one push to…
-I quit.
-What? Her boss says.
-Yes I quit.
-Okay, but we’ll manage to replace you by the end of the week.
She walks home. Scared, but relieved she no longer needs to work at that dreadful place anymore.
'''
#title
print("The Interactive Human\n created by Alarick{Ryan Job} Amaan{}, Greg{Greg J. Hornyak}, Javeria{Bibi Javeria}, Karam{Karam Syed}, Mihaela{Mihaela Iosip}")
pause()
#start
ans1 = input("To start the game please type in your name: ")
print("Fine, however the protagonist has no name, so thanks " + ans1 + ", nice job!")
pause()
#part1 - introduction
print(text1)
pause()
#part2 - workplace
ans2 = input("She stacks what must be the __(th) shelf...\n")
ans3 = input("full of ____ and wonders about what she is supposed to do in life.\n") #ans3 instead of "bread"
print("Was this what her life had come to?")
print("Stacking shelves of " + ans3 + " and other groceries for other people.")
print("While this was a job that she knew needed to be completed,\n was it her life’s purpose?")
pause()
#part3 - colleague
print("-Hi my friend! Says a friendly face next to you.")
ans4 = input("Hi... ehm... ________?\n")
#part3 - if_1
if ans4 == "XYZ":
print("Nice to see you colleague!")
else:
print("So you don't even remember my name. Good, well, have a nice day!")
pause()
#part4 - recollection
iq = 0
print("Like a lot of people...")
#part4 - math class
print("[You are in highschool, in math class]")
ans5 = input("-5 times 13 equals? Asked the teacher\n-I know, it's ____!\n")
ans5 = int(ans5)
#part4 - if_1
if ans5 == 65:
print("Well done, that's correct")
iq += 1
else:
print("Holy molly, you couldn't be more wrong!")
pause()
#part4 - geology class
print("[You are in highschool, in geology class]")
ans6 = input("So kids, do you know which shape does Earth look like? Asked the teacher\n-I know, it has a shape like a(n) ____!\n")
#part4 - if_2
if ans6 == "ball" or ans6 == "globe" or ans6 == "orange" or ans6 == "coconut":
print("That is correct!")
iq += 1
else:
print("You see class, that is a silly answer!")
pause()
#part4 - after-school-clubs
myClub = ""
print("[You are in highschool, in front of the wall newspaper]")
print("-Lets see, there is a \nchess club,\na professional football club,\na drama club,\nand a fancy dance club")
ans7 = input("I would like to choose the __________ club!\n")
#part4 - if_3
if ans7.lower() in "football club":
myClub = "playing football"
elif ans7.lower() in "chess club":
myClub = "playing chess"
elif ans7.lower() in "drama club":
myClub = "attending drama classes"
elif ans7.lower() in "fancy dance club":
myClub = "dancing"
else:
myClub = "nan"
pause()
#part4 - recollection_2
#part4 - if_4
if iq == 0:
print("Like a few people she’d got bad grades in school,")
elif iq == 1:
print("Like a lot of people she’d got good grades in school,")
elif iq == 2:
print("Like most of people she’d got excellent grades in school,")
if myClub != "nan":
print("gone to all the after school clubs\nand been told she had unlimited potential.")
#part4 - random
parent_rdm = random.randint(1,2)
if parent_rdm == 1:
parent = "father"
elif parent_rdm == 2:
parent = "mother"
if myClub != "nan":
print("Of course she didn’t follow her potential,\nas her " + parent + " prohibited her from " + myClub + ".")
else:
print("Of course she didn’t follow her potential.")
print("Now she is currently watching her reflection\nin the tabs that keep the "+ans3+" packaged.")
pause()
#part5
print(text4)
pause()
#part6 - boss
print(text5)
print("-You’ve stacked them all wrong.")
print("-What? Asks the Human.\nShe’d just stacked the "+ans3+",\nwhat could she have possibly got wrong?")
print("-They’re in the wrong order,")
#part6 - random
boss_ans_rdm = random.randint(1,3)
#part6 - if_1
if boss_ans_rdm == 1:
print("and the price tags don’t even match half of these, do them again!")
elif boss_ans_rdm == 2:
print("and you have damaged the boxes, go and repair them!")
elif boss_ans_rdm == 3:
print("and half of them isn't even "+ans3+". Go and replace them!")
print("Her boss said coldly.")
pause()
#part6 - quit
print('"The Human had been a little distracted."')
print("-I wonder why we keep you around, you are nothing.\n-You literally have no purpose!")
ans8 = input("__________\n")
#part6 - if_2
if "quit" in ans8.lower():
print("That was all it took. That one push to end up her job.")
print("Okay, but we’ll manage to replace you\nby the end of the week.")
elif "sorry" in ans8.lower():
print("There is no need to apologize. You are fired!")
elif "shut" in ans8.lower():
print("How dare you! The boss calls the stuff and\nthey throw you out of the store.")
pause()
#part7 - walk home
print("She walks home.\nScared, but relieved she no longer needs\nto work at that dreadful place anymore.")
pause()
print("Next: Amaan's part")
'''
I have used these:
- variables:
ans1 = str
ans2 = int
ans3 = str
ans4 = str
ans5 = int
ans6 = str
ans7 = str
ans8 = str
boss_ans_rdm = int
parent_rdm = int
parent = str
myClub = str
iq = int
text1 = long str
text2 = long str
text3 = long str
text4 = long str
text5 = long str
- functions:
pause() = no return
- import:
random
math
'''