Skip to content
Permalink
Browse files
Code UPGRADE
  • Loading branch information
blakeb committed Oct 11, 2020
1 parent 782e9e6 commit 8e55fac9ef7ac8e021e36b0586204941c35e19ed
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 45 deletions.
Binary file not shown.
@@ -31,7 +31,7 @@ story={0: "To select an option, press the number next to that option. \n Game st
27: "On closer inspection, this turns out to be a device from which sheets of papyrus were coming from and forming a long line... \n 1. Follow the papyrus \n 2. Nope I’m getting out", 27: "On closer inspection, this turns out to be a device from which sheets of papyrus were coming from and forming a long line... \n 1. Follow the papyrus \n 2. Nope I’m getting out",
28: "The papyrus is flowing into a trap door. You think about why that might be. Perhaps it’s for writing on? No these already have markings, they’re covered in hieroglyphs already. \n As you follow the papyrus further you watch it fall down into a huge underground area almost filled to the brim with these glyphed sheets. The sheer number of research material here is incredible... so tempting to stay and read it all... \n 1. Stay and read it all \n 2. Are you kidding? I’m out!!", 28: "The papyrus is flowing into a trap door. You think about why that might be. Perhaps it’s for writing on? No these already have markings, they’re covered in hieroglyphs already. \n As you follow the papyrus further you watch it fall down into a huge underground area almost filled to the brim with these glyphed sheets. The sheer number of research material here is incredible... so tempting to stay and read it all... \n 1. Stay and read it all \n 2. Are you kidding? I’m out!!",
29: "Certain that the secrets held by this discovery site are contained within this material, you beckon Laura who’d been standing outside looking anxious to come in and examine the notes. Together you start deciphering. \n “We may have just stumbled upon something great. The computers that we have developed provide us with unparalleled mathematical prowess and using that prowess we could calculate anything.” Laura says. \n Reaffirmed that the papyrus holds the truth about what the discovery site really is, you continue to decipher the notes “Soon the newest computer will be finished and with it we will have the power to calculate the meaning of life”. now at a heightened point of intrigue you start to pull up the last bit of papyrus from the underground pit. However the room starts to shake once again and the whirring of machinery gets louder and louder. \n 1. We need to get out of this room NOW \n 2. This room can shake and whir as much as it wants, I am going to find out what happened here", 29: "Certain that the secrets held by this discovery site are contained within this material, you beckon Laura who’d been standing outside looking anxious to come in and examine the notes. Together you start deciphering. \n “We may have just stumbled upon something great. The computers that we have developed provide us with unparalleled mathematical prowess and using that prowess we could calculate anything.” Laura says. \n Reaffirmed that the papyrus holds the truth about what the discovery site really is, you continue to decipher the notes “Soon the newest computer will be finished and with it we will have the power to calculate the meaning of life”. now at a heightened point of intrigue you start to pull up the last bit of papyrus from the underground pit. However the room starts to shake once again and the whirring of machinery gets louder and louder. \n 1. We need to get out of this room NOW \n 2. This room can shake and whir as much as it wants, I am going to find out what happened here",
30: "Unfortunately, as you turn around to bolt, you find the door that triggered this chaos closed. You’re trapped. \n 1. If I’m trapped, might as well find out what this machine’s doing... \n 1. Try and open the door", 30: "Unfortunately, as you turn around to bolt, you find the door that triggered this chaos closed. You’re trapped. \n 1. If I’m trapped, might as well find out what this machine’s doing... \n 2. Try and open the door",
31: "You continue Archaeologist’s Digest and read about how there’s been a new discovery in Giza. How interesting. You can’t read much further because the phone is still ringing. Loudly. \n 1. Answer it ", 31: "You continue Archaeologist’s Digest and read about how there’s been a new discovery in Giza. How interesting. You can’t read much further because the phone is still ringing. Loudly. \n 1. Answer it ",
32: "You discovered it couldn’t be easily translated to Greek, as you were yet to know what it meant in English. Those symbols do look similar to greek, maybe it originated there? \n 1. Try reading it backwards? ", 32: "You discovered it couldn’t be easily translated to Greek, as you were yet to know what it meant in English. Those symbols do look similar to greek, maybe it originated there? \n 1. Try reading it backwards? ",
33: "The leading archaeologist, Ethan Stewart, tells you of all the people that have approached the door before you and failed. \n “It’s quite the mystery, I have no idea on how to unlock this contraption, could you help?” \n 1. Examine the door", 33: "The leading archaeologist, Ethan Stewart, tells you of all the people that have approached the door before you and failed. \n “It’s quite the mystery, I have no idea on how to unlock this contraption, could you help?” \n 1. Examine the door",
@@ -77,7 +77,7 @@ route={0:[0, 1],
11:[12, 16], 11:[12, 16],
12:[13], 12:[13],
13:[14, 57], 13:[14, 57],
14:[57], 14:[57, 24],
15:[32,17], 15:[32,17],
16:[12], 16:[12],
17:[18], 17:[18],
@@ -130,54 +130,46 @@ y = 0
x = 0 #the position of the list "y" inside "route" x = 0 #the position of the list "y" inside "route"
moduleProgressList = [] moduleProgressList = []
condition = True condition = True
restart = True






while True: while restart == True:
condition = True condition = True
while condition == True: while condition == True:
if y > -1 and y < 61: y = int(y)
moduleProgressList.append(y) #Adds the current module to the list of travelled modules previous = int(y)
list = route[y][int(x)-1]#where y == which list in route to look at and x == the position of the nested list inside route moduleProgressList.append(y)
y = list #Adds the current module to the list of travelled modules
text = story[y] list = route[y][int(x)-1]#where y == which list in route to look at and x == the position of the nested list inside route
print(text) #Displays module text based on y value recieved y = list
if y==50 or y==60 or y==59 or y==48 or y==52 or y==47: text = story[int(y)]
condition = False #prevents user from accessing a different part once they have reached an endin print(text) #Displays module text based on y value recieved
else: if y==50 or y==60 or y==59 or y==48 or y==52 or y==47:
x = input("Your choice is...") condition = False #prevents user from accessing a different part once they have reached an ending
if x.isdigit() == False: #This determines whether the value input is a digit
while x.isdigit() ==False:
print("This is an invalid input")
x = input("Your choice is...")
choiceNumber = int(x)
previous = y
x = choiceNumber #y is the target module as chosen by the user input
list = route[y][int(x)-1] #em new added to reference route for choice
routeNumber = list
if y == 24 or 46:
hold = str(previous)
story[46] = "As you wait for it to be time to board the airplane Laura rushes in to the airport and straight towards you, “We are on the cusp of something great! Please come back. Your expertise is really needed.” she blurts out hoping to prevent you from leaving “Aren’t you curious? Don’t you want to find out more?” in a last attempt to convince you to return. \n 1. You’re definitely curious, and hey! Better you than some other schmuck who won’t know when to quit. \n 2. No, I want nothing to do with it and besides plane tickets aren’t cheap."
story[24] = "Upon reading the warning of impending doom, you decide to hightail it out of the discovery site and rush to your belongings \n 1. Pack belongings hurriedly and hope a ticket is available \n 2. No time to pack! I need to get as far away as I can \n 3. Okay, maybe I overreacted slightly"
else: else:
while y != int or ( y < 0) or y > 60: x = input("Your choice is...")
print("This is an invalid input") if x.isdigit() == False or int(x) > int(len(route[y])) or int(x) == 0: #This determines whether the value input is a digit
x = input("Your choice is...") while x.isdigit() == False or int(x) > int(len(route[y])) or int(x) == 0 or int(x) < -1:
if x.isdigit() == False:
while x.isdigit() ==False:
print("This is an invalid input")
x = input("Your choice is...")
choiceNumber = int(x)
previous = y
y = choiceNumber #This ensures that only valid numbers
if y == 24 or 46:
hold = str(previous) #holds the location prior to moving into the runaway side branch so that the page they would return to is displayed on the screen when they go back
story[46]="As you wait for it to be time to board the airplane Laura rushes in to the airport and straight towards you, “We are on the cusp of something great! Please come back. Your expertise is really needed.” she blurts out hoping to prevent you from leaving “Aren’t you curious? Don’t you want to find out more?” in a last attempt to convince you to return. \n "+ hold +" You’re definitely curious, and hey! Better you than some other schmuck who won’t know when to quit. \n 47. No, I want nothing to do with it and besides plane tickets aren’t cheap."
story[24]="Upon reading the warning of impending doom, you decide to hightail it out of the discovery site and rush to your belongings \n 35. Pack belongings hurriedly and hope a ticket is available \n 36. No time to pack! I need to get as far away as I can \n "+ hold +". Okay, maybe I overreacted slightly"
x = input("The End would you like to play again? y/n")
if x != "y" and x != "Y" and x!= "n" and x!= "N": #This determines whether the value input is a digit
while x != "y" and x != "Y" and x!= "n" and x!= "N":
print("This is an invalid input") print("This is an invalid input")
x = input("Your choice is...") x = input("Your choice is...")
if x == "n" or "N":
break # breaks the while true loop if players dont want to restart x = int(x) #y is the target module as chosen by the user input
if y == 24 or 46:
if y == 24:
hold = previous
story[46] = "As you wait for it to be time to board the airplane Laura rushes in to the airport and straight towards you, “We are on the cusp of something great! Please come back. Your expertise is really needed.” she blurts out hoping to prevent you from leaving “Aren’t you curious? Don’t you want to find out more?” in a last attempt to convince you to return. \n 1. You’re definitely curious, and hey! Better you than some other schmuck who won’t know when to quit. \n 2. No, I want nothing to do with it and besides plane tickets aren’t cheap."
story[24] = "Upon reading the warning of impending doom, you decide to hightail it out of the discovery site and rush to your belongings \n 1. Pack belongings hurriedly and hope a ticket is available \n 2. No time to pack! I need to get as far away as I can \n 3. Okay, maybe I overreacted slightly"
route[24] = [35, 36, hold]
route[46] = [hold, 47]

x = input("The End would you like to play again? Press 1 to restart.")
if (x == "1"): #This determines whether the value input is a digit
restart = True # breaks the while true loop if players dont want to restart
condition = True
y = 0
x = 0
moduleProgressList.clear #Restarts if the person presses 1, resets all variables used when restarting
hold = 0
else:
restart = False

0 comments on commit 8e55fac

Please sign in to comment.