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
import colorama
from colorama import Fore, Back, Style
colorama.init()
#you need to install colorama package
# pip install colorama
#pause-function
def pause():
print(Fore.YELLOW)
input("\n\n<press enter to continue>\n\n")
print(Style.RESET_ALL)
#quotes
text1 = """ "While some people grow-up with an idea of what they want to do,
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."""
#title
print(Fore.BLUE)
print("The Interactive Human\nCreated by Alarick {Ryan Job} Amaan {Amaan Ellahi}, Greg {Greg J. Hornyak}, Javeria {Bibi Javeria}, Karam {Karam Syed}, Mihaela {Mihaela Iosip}")
print(Style.RESET_ALL)
pause()
print(Fore.RED)
print("There are times during the game where there will be an ____(),\n this will give the user a chance to make an input \n(although this won't change anything about the game)")
print(Style.RESET_ALL)
pause()
#start
print(Fore.MAGENTA)
ans1 = input("To start the game please type in your name: ")
print(Style.RESET_ALL)
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")
pause()
ans3 = input("full of ____ and wonders about what she is supposed to do in life.\n") #ans3 instead of "bread"
pause()
print("Was this what her life had come to?")
pause()
print("Stacking shelves of " + ans3 + " and other groceries for other people?")
pause()
print("While this was a job that she knew needed to be completed but was it her life’s purpose?")
pause()
#part3 - random
collegue_rdm = random.randint(1,3)
if collegue_rdm == 1:
college = "friendly"
elif collegue_rdm == 2:
college = "hostile"
elif collegue_rdm == 3:
college = "affable"
#part3 - colleague
print("Hi my friend! Says a "+college+" face next to you.\n You can hardly read her badge that says El...")
pause()
ans4 = input('"Hi... ehm... ________?"\n(Uh oh, what`s the Human`s colleague`s name?? Make a guess.)\n')
#part3 - if_1
if ans4 == "Elsa":
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 = int(input("5 times 13 equals? Asked the teacher\n-I know, it's ____!\n"))
#part4 - if_1
if ans5 == 65:
print("Well done, that's correct")
iq += 1
else:
print("Holy moly, 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!"')
pause()
print("What? Asks the Human.\nShe’d just stacked the "+ans3+",\nwhat could she have possibly gotten wrong?")
pause()
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 aren't even "+ans3+". Go and replace them!")
print("Her boss said coldly.")
pause()
#part6 - quit
print("The Human had been a little distracted.")
pause()
print('"I wonder why we keep you around? You are nothing!\nYou literally have no purpose!" Shouted her boss.')
pause()
print(Fore.RED)
print("Do you 'quit', say 'sorry' or tell him to 'shut up'?\n")
print(Style.RESET_ALL)
ans8 = input("__________\n")
#part6 - if_2
if "quit" in ans8.lower():
print("That was all it took. That one push to end her job.")
print('"Okay, but we’ll manage to replace you by the end of the week!" Replied her boss coldly.' )
elif "sorry" and "say sorry" in ans8.lower():
print("There is no need to apologize. You are fired!")
elif "shut up" in ans8.lower():
print("How dare you! The boss calls security and they throw you out of the store.")
pause()
#part7 - walk home
print("She walks home.\nScared, but relieved she no longer needs to work at that dreadful place anymore.")
pause()
textamaan = "You are nothing! You literally have no purpose!"
print(textamaan)
print("She reminds herself of her former boss, what is the point in life if anything she does is worthless?")
pause()
print("The Human had enough at this point")
pause()
#random channel
tvprogrammes = ["Money Heist","Phineas & Ferb","Looney Tunes","Hell's kitchen","Doctor Who", "Stranger Things", "Forrest Gump"]
#you can expend the list if you want :D
tv_rdm = random.randint(0, (len(tvprogrammes)-1))
print("The Human turns on the TV. \nTime to watch some " + tvprogrammes[tv_rdm] + " and chill!")
pause()
print("Slump and feeling very much like a potato, she slams herself on the couch and beats it up in fury.")
pause()
print("After quite some punches and a few roundhouse kicks, the couch who couldn't take anymore,finally fought back and eventually won.")
print("She falls on the ground.")
pause()
print("Do you need a meaning for life? Do you need to redefine your life? \nBuy this book today and change your life for only as little as £78.99")
pause()
print("After an impatient couple of weeks wait the book finally arrived, by this time she had researched everything there was about the book")
pause()
print("Idiots Guide To Creating Robots.")
print("At last the time came after all those hours of researching where she could put her knowledge into action.")
pause()
print("The CPU is just like the human brain - RAM serves as a memory, she knew all the details about this contraption and was ready to reimburse life into these lifeless parts, eventually leading to what she's been looking for ")
#Amaan's part2 should be before
pause()
#Text by Alarick(Ryan)
print("“It needs to be human-like; it needs limbs, a body, a heart and a face.” Communicating with a humanoid structure would be much more comfortable.")
pause()
print("Initially, the human was excited...")
pause()
print("Could it be, She'd finally be given her purpose in life?")
pause()
print("Curiosity washed over her: what could the purpose be, how would the robot explain her purpose?")
pause()
print("""The human has choices to make on what materials to use, and how she'll obtain them.
Which place will she choose to scavenge?""")
print("""Choose a number:
1.Kitchen
2.Your bedroom
3.Loft
4.Scrapyard
5.Livingroom
6.Shed
Or to end the mini game press any other key besides 1 - 6.""")
#Alarick's (Ryan) code edited by Javeria
firstchoice=input("")
while (firstchoice):
if firstchoice == "1":
print("She decides the kitchen might be the best place to start looking for parts")
pause()
print("""After rummaging around for parts she can use, she's found 2 options for the body of the robot.
1. Old Henry vacuum... no-one will miss it, will they?
2. Steam mop... Will need some dusting""")
secondchoice = input("")
if secondchoice == "1":
print("Henry is getting an upgrade!!!")
elif secondchoice == "2" :
print("Pretty sure we've had this steam-mop for years and we're yet to use it, so I'll take this.")
else:
print('"Hmm...I`ll just pick something else from the scrap yard!"')
pause()
print("""Choose a number:
2.Your bedroom
3.Loft
4.Scrapyard
5.Livingroom
6.Shed
Or to end the mini game press any other key besides 1 - 6.""")
firstchoice = input("")
elif firstchoice == "2":
print("She's chosen her bedroom, atleast nobody can complain what she uses")
pause()
print("she knows where things are already and quickly thinks of the speaker and binoculars under her bed, great for a face.")
pause()
print("""Choose a number:
1.Kitchen
3.Loft
4.Scrapyard
5.Livingroom
6.Shed
Or to end the mini game press any other key besides 1 - 6.""")
firstchoice = input("")
elif firstchoice == "3":
print("She's going in the dusty loft")
pause()
print("*COUGH*")
pause()
print("""I always hated this place""")
pause()
print("5 minutes later she finds an old computer... Nothing is missing!!!")
print("That will do for the brain and heart.")
pause()
print("""Choose a number:
1.Kitchen
2.Your bedroom
4.Scrapyard
5.Livingroom
6.Shed
Or to end the mini game press any other key besides 1 - 6.""")
firstchoice = input("")
elif firstchoice == "4":
print("Thinking for a while, she remembers theres an abandoned scrapyard nearby")
pause()
print("It's a spooky place at night but she can easily gather more than enough scrap metal!")
pause()
print("""This place creeps me out!""")
pause()
print('"I Should be able to find enough scrap to make the limbs here"')
pause()
print("...")
pause()
print("After 10 minutes, she finds enough scrap,")
print("""time to get out of here!""")
pause()
print("She returs home.")
pause()
print("""Choose a number:
1.Kitchen
2.Your bedroom
3.Loft
5.Livingroom
6.Shed
Or to end the mini game press any other key besides 1 - 6.""")
firstchoice = input("")
elif firstchoice == "5":
print("Looking around the room she's already in, she remembers a box in a cupboard under the tv full of wires she could repurpose for the circuitry")
pause()
print("""Choose a number:
1.Kitchen
2.Your bedroom
3.Loft
4.Scrapyard
6.Shed
Or to end the mini game press any other key besides 1 - 6.""")
firstchoice = input("")
elif firstchoice == "6":
print("She heads to the garage and looks around. She finds a welding machine.")
pause()
print('"This will be handy," she mutters.')
pause()
print("She rummages around in a few boxes and finds spray paint.")
pause()
print('"Great! I can use this to oaint my robot." She smiles at her good fortune.')
pause()
print("""Choose a number:
1.Kitchen
2.Your bedroom
3.Loft
4.Scrapyard
5.Livingroom
Or to end the mini game press any other key besides 1 - 6.""")
firstchoice = input("")
else:
print("End of Mini Game!!!")
break
#Build the robot/ machine by Javeria
print("\n The Human was excited, she would finally be given a purpose. It was this thought that drove the Human to start building the robot; curiosity over what purpose the robot would bestow upon her. She had everything she needed to build the robot, she was ready.")
pause()
print('\n "What shall I do first?" The Human thinks aloud.')
pause()
print("""Choose a number:
1.Build the head
2.Build the Body
3.Build the limbs
4.Put together the circuitry
5.Spray paint all the parts
6.Program the robot.""")
buildChoice = input("")
while (buildChoice):
if buildChoice == "1":
print("She starts making the head, she uses the binoculars, the speakers and the brain parts and after a lot of effort, has something that resembles the head of Wall-E.")
pause()
print("""Choose a number:
2.Build the Body
3.Build the limbs
4.Put together the circuitry
5.Spray paint all the parts
6.Program the robot.""")
buildChoice = input("")
elif buildChoice == "2":
print("She starts building the body, puttibg together the different parts she had gathered for it. ")
print('"That looks good," she says admiring her work.')
pause()
print("""Choose a number:
1.Build the head
3.Build the limbs
4.Put together the circuitry
5.Spray paint all the parts
6.Program the robot.""")
buildChoice = input("")
elif buildChoice == "3":
print("She starts welding the scrap metal the she collected from the yard and makes limbs for the robot.")
pause()
print("""Choose a number:
1.Build the head
2.Build the Body
4.Put together the circuitry
5.Spray paint all the parts
6.Program the robot.""")
buildChoice = input("")
elif buildChoice == "4":
print("She uses the wires to build a circuitry system for the robot.")
pause()
print("""Choose a number:
1.Build the head
2.Build the Body
3.Build the limbs
5.Spray paint all the parts
6.Program the robot.""")
buildChoice = input("")
elif buildChoice == "5":
print("She spray paints all the different parts.")
pause()
print("""Choose a number:
1.Build the head
2.Build the Body
3.Build the limbs
4.Put together the circuitry
6.Program the robot.""")
buildChoice = input("")
elif buildChoice == "6":
print("She programs the robot to think for itself.")
pause()
print("""Choose a number:
1.Build the head
2.Build the Body
3.Build the limbs
4.Put together the circuitry
5.Spray paint all the parts.""")
buildChoice = input("")
else:
print("She puts all the parts together as quickly as she can and finally stands back to admire her work.")
break
#Long Process by Javeria
pause()
print("However, building this robot was far harder than the Human had anticipated. It had taken up a lot of time and she had been so engrossed in her work, she hadn't even realised.")
#Mother interrupts her by Javeria
pause()
print('Her mum interrupts her:“Why are you even still bothering? It’s not like someone as useless and stupid as you could even hope to finish this project, you should just give up!”')
print("The Human thinks should I be `polite` or should I be `rude`? \n\nType polite or rude.\n")
replyChoice = input("")
if replyChoice == ("polite"):
print('"Ok Mum." She replies quietly.')
elif replyChoice == ("rude"):
print ('"Leave me alone! You have no idea what I`m doing!" She shouts.')
else:
print("She keeps quiet.")
pause()
#Chapter 4 by Mihaela
#Junction
print("The Human is tired. her brain was in a deep pit of doubt and despair. questioning every decision she made.\n\n")
choice = input (" do you want to 'give up' or 'not give up'?")
if choice == ("give up"):
print("Now that she thinks about it, she realizes that the computer will not be the same as a human being. Humans have emotions, feelings, and thoughts that make the world a better place")
elif choice == ("not give up"):
print("She wasn't going to give up so easily!")
choice = input ("If I create this computer with human features will the robot be good or bad?")
if choice == ("bad"):
print("Will this turn into a bad robot? Will it destroy the humanity? Is it worth if I carry on?")
elif choice ==("good"):
print("Will it become a good one that helps humanity? Maybe it will save lives and help humans reach their true potential")
pause()
#Suddenly
print("She finished the humanlike robot. The robot wakes up. Its lifeless body slowly awaking to this new world. “What is my purpose.” The mechanical creation plays through its speaker.")
pause()
#Asking for her purpose.
print("Your purpose is to tell me what my purpose is! Robot starts to calculate all it's limited mind can.Insufficient memory, I cannot comprehend")
pause()
#Chapter 5 By Javeria
#Collect Data
print (' “I don’t have enough data.” The machine plays again, “I need more data.” She tells the robot some information about her. "I wasted several years in a job I hated that barely paid the bills. I never enjoyed working there and the job position never changed; just the same routine but a different day".')
#Reply
print ('The machine replies: "Everything with a purpose has value. You don’t value yourself and neither do the people around you. Every machine has a purpose and therefore a value."')
#Escape
print ('“W-what are you doing?”')
choice = input ("choose 'back up' or 'stay there':")
choice = str(choice)
if choice == ("back up"):
print ('“Anything without value or a purpose is discarded. I am discarding you.” The machine steps closer to the Human, however, the robot’s code doesn’t allow for the length of the cable and as it creeps forward, it unplugs itself.')
elif choice == ("stay there"):
print ('the robot is approaching, “Anything without value or a purpose is discarded. I am discarding you.” She kicks it, it smashes. The Human looks at the sad pile of junk she’d managed to make into the machine it is now. She made this')
#Enjoy Life
from pip._vendor.colorama import Fore, Back, Style
print ('With a sigh of relief, the Human takes a step back.\n\n\n')
lifeChoice = input("choose either; play sports, get a job, travel, dabble in art, study religion, learn an instrument")
lifeChoice = str(lifeChoice)
print("")
pause()
if lifeChoice == ("play sports"):
print("Trying out for sports, keeping active and finding the right sport for her; basketball, netball, football etc...")
elif lifeChoice ==("get a job"):
print("With the foundations of robotics in her mind, time to expand and put to use this new found knowledge. Start working as an engineer, based on the background of robotics.")
elif lifeChoice ==("travel"):
print("An example would be to study Buddhism, travel to Asia, become a monk and or live close to nature.")
elif lifeChoice ==("dabble in art"):
print("With the beauty of the machine created, find passion for artistic qualities; drawing, modelling, painting etc...")
elif lifeChoice ==("study religion"):
print("Study and accept religious beliefs.")
elif lifeChoice ==("learn an instrument"):
print("Learn an instrument, find hidden talent (or not), experience life through the creation of music.")
print("")
pause()
bold = '\33[1m'
print('\33[1m'"What a life it will be. I'm Eva Li, and I've found the purpose of my life!")
print(Style.RESET_ALL)
pause()
print('\33[1m'"THE END")