Skip to content
Permalink
Browse files
updates to code
  • Loading branch information
abbouddome committed Oct 10, 2021
1 parent 523f1dc commit 38741c6acab928ac221e97db904f73919c4f552e
Show file tree
Hide file tree
Showing 3 changed files with 131 additions and 128 deletions.
@@ -1,134 +1,9 @@
def choose(options):
valid_inputs = [option[0] for option in options]
choice = ""
print("")
for option in options:
print(option)
print("")
while choice not in valid_inputs:
choice = input("Enter a valid option: ")
print("\n\033[01;41m"+"--------------------------------------------------"+"\033[01;00m")
return choice

def intro():
print("For many years mike and bob would play around together and get into places they shouldn't go to, which meant they would inevitably get into trouble. One day bob saw an abandoned library written on it was CEFR and they decided to go in together, there Mike saw a glimpse of an old machine which reminded him of an artificial robot he once saw on the internet which was weird and unexpected given they are in an abandoned rusty place.")
print("so they decide to slowly approach the machine together, bob decides to take some dust off a small paper on the machine and reeds the following this is a time machine which is made in 2021 by Madison ray than mike saw a huge CAUTION sign, mike suggested to leave but with bob's adventurous spirit there was no way he was leaving a treasure like that behind")
print("all of a sudden the machine started making a weird noise and a screen poped up in it there was a place for a 4 character password")
options = ["a. They choose to stay longer", "b. Bob and Mike hastley exit the building" ]
return choose(options)

def first(choice):
if choice == "a":
print("Bob remembered the word written on the library and tried to input it but it didn't work")
options = ["c. Mike decides to use the Ceaser Cipher encryption technique", "d. Mike decides to use the Triple DES technique"]
return choose(options)
else:
print("On the way out, they run into an old friend, whom seemed to have been heading towards the arcard. Out of fear and confusion, they choose to join their friend on their adventure to help avoid any issues.")
print("A few months later, and both Bob and Mike have completely forgotten about the little incident and begin to live on with their lives happily THE END")
return None

def second(choice):
if choice == "c":
print("He used 2 letters backwards which didn't work so he decided to use 3 letters forwards and he input FGHI and to their surprise it worked! Then they started hearing the sound of a door slowly opening,")
options = ["e. The doors of the time machine were opening!", "f. The library building doors opened"]
else:
print("As they hastely work on using the Triple DES technique the begin to encounter lots of errors that prevent them from finding the proper answer.")
print("Then a mysterious figure appears behind them looking at them with an eerie stare. He reaches his hand into his pockets and out came two jewels, one that was a strong red, the colour of blood, and the other jewel was as green as the grass fields. All he does is hold out his hands in hope for Bob and Mike to make a choice. They decide to take")
options = ["g. The red jewel ", "h. The green jewel"]
return choose(options)

def third(choice):
if choice == "e":
print("A green ray came out of the cylinder looking machine which started sucking them into it, bob just went with it and disappeared, mike on the other hand tried to resist but")
options = ["i. this point it was too late…", "j. he was able to resist the pulling power of the ray"]
input_choice = choose(options)
elif choice == "f":
print("Then a mysterious figure appears behind them looking at them with an eerie stare. He reaches his hand into his pockets and out came two jewels, one that was a strong red, the colour of blood, and the other jewel was as green as the grass fields. All he does is hold out his hands in hope for Bob and Mike to make a choice. They decide to take")
input_choice = None
elif choice == "g":
print("Bob and Mike both reach for the red jewel and the moment they grab it they hear heavy metal noises. They come to an understanding that this man has placed them in a trap, as a door opens underneath them and they fall into a never ending pit. THE END.")
input_choice = None
elif choice == "h":
print("As they reach for the green jewel, they begin to feel anxious knowing that something is at stake. Once they grab the jewel Bob and Mike begin to feel excruciating pain as they begin to melt from a highly acid chemical, that is stored within the jewel. THE END.")
input_choice = None
return input_choice

def fourth(choice):
if choice == "i":
print("When they arrived to the future a video appeared and they heard the following. This is Doctor Maddison Ray I have been working on time travelling technology I managed to make a prototype machine, which enables the travel in between different dimensions under no circumstances use the machine without my permission. After that they meet locals who explain the situation in the new world.")
print("They are now given two instances, one where they could")
options = ["k. could attend a small gathering, known as the festival that the locals do", "l. they can hide in an abandoned building until they think of a plan "]
return choose(options)
else:
print("Mike escapes the grip of the machine and runs towards the exit of the library building, without giving it a thought he knows that his friend is gone now and that he can do nothing other than escape and prevent anyone from falling for the same mistake him and his friend have fallen for. THE END.")
return None

def fifth(choice):
if choice == "k":
print("They started to run to the festival, hoping that they will find Dr Maddison there! At the vintage festival there were many tables with products from many years ago, from 2000 for example. They ignored everything except Vintage Cars except where they found Mini Cooper parking place! Their problem is that is not only one Mini car...there are thousands! In this situation there are 2 options!")
options = ["m. hack into the cameras from the cars", "n. start searching in all cars"]
elif choice == "l":
print("Mike and I woke up in rubles thinking we made something go wrong and ended up in an explosion Bob - 'Are you okay?' Mike - 'Yes i'm fine, are you okay?, i think we messed up and broke the whole place' bob - 'It does sure look like it maybe it was some protection against a wrong code, anyways let's get up and leaves this place as soon as possible' after getting up from the rubble both Mike and Bob are confused as the place they are in doesn't look like the laboratory they entered prior to the explosion after leaving the laboratory they see that nothing is like what it was everything is either ruined or really well keep like an mix of post-apocalyptic with technology advanced future they start to walk down until they hear a group men shouting at them to run and hide so bob and mike ran at the men without thinking and when after them after which they hear gun shots 'what was that' said mike but nobody said anything and the group of men just put their fingers on their mouths to show to bob and mike to be quite minutes pass and one of the men finally speaks which division are you from? To which Mike replies 'divsion? What do you mean' the unidentified man says ' I am Colonel Manson the leader of this division where did you two get here are did you forget about the robots do you want to die?' mike replied 'what robots where are we ?' Manson' what do you mean what robots did you lose your memory?' at which point Mike and bob realised they have actually time traveled.")
print("Super Ai robot created by a super intelligent scientist learns how to create new robots and how to program them so they work for him and impressing scientist the humans")
print("'Im sorry Colonel Manson this might sound really obscure but we are time travelers from 2022 and if we may ask you again what year is this?' Colonel Manson 'This is Year 2200 Day 20 of the month July Time 11:21:53 now if i may ask you do you know not know nothing' we know nothing Colnel my name is Mike and this is bob Colnel manson 'Well long story short Mike And bob the world has been over run by highly powered AI robots which overpowered their created dr Maddison and it's believed they have killed him and now we are trying to fight against them however they are much more powerful and much more intelligent than humans however we are really close to finding their main power switch as there is a legend that the robots can be disabled with a main switch.'")
print("At this point mike and bob freak out and decide to run back to the time machine. Mike says 'It's time to get back home, in their time!' Mike and Bob are ready to go, they get in the machine and tried to start it! It does not work! Mike and Bob believed that the reason is the season because it is winter outside and many cars, even time machines, have problems at the 'first key'.")
print("They checked the dashboard where they saw a strange combinations of letter:")
print("----------------------")
print("Error 404")
print("----------------------")
print("The user was not found!")
print("Please! Key = int(input('Enter the original key of Madisson Ray in binary:' \n")
print("Mike and Bob understood that they have a huge problem ahead! They are not able to get back to their time until they find the scientist!")
choose(["aa. NEXT"])
print("The guys started to search for Maddison! Traveling in that times is not easy, because every street name is written using binary! They go in the city center, in Apple Square, trying to find any evidence about Maddison’s location. When they arrived in the Square, they observed something strange! The Square is changing! On every screen is a loading bar on which indicates the progress of a software update. The hole city is updating the software, so it is a maintenance break! The robots, which clean the streets, are freezing and the road is blocked by the self-driving cars!")
print(f"When the screen stopped at 99% and on the top of the screen appeared a code:")
print("01001101 01100001 01100100 01100100 01101001 01110011 01101111 01101110 ( Maddison )")
print("01101001 01110011 01101001 01101110 01001101 01101001 01101110 01101001 ( is in Mini )")
print("It is a bug which output the messages of the robots who captured Maddison! But Mike and Bob were not understanding what is a Mini! It is a special binary code? After they tried to decode the '01001101 01101001 01101110 01101001' which means Mini, they just google it! They found Mini Cooper which is a vintage car from England! Maddison is in this old and dusty car! Mike and Bob undestood that they will find Maddison at the vintage festival in Apple Square.")
choose(["bb. NEXT"])
print("Following the coordinates the colonel gave them, the boys head back to the hideout to relay the information they deciphered to him. Reaching the hideout they find the colonel deep in conversation with a few of the other soldiers. 'Colonel!', 'Ah Bob, Mike where did you run off to? It’s very dangerous out there I told you to come straight to the hideout when you’re done'. 'Sorry Colonel, but we have some news! It seems Dr. Maddison is in his Cooper according to what the code Tells us.' A look of confusion dawned on the colonel’s face. 'How and what do you mean by that?' asked the colonel. 'Well after we decrypted a code from a bug in the update server It said and I quote ‘Maddison is in Mini’,' replied Mike. 'That’s some fantastic work boys” the colonel replied immediately gesturing for his intel team to come over. 'Dr. Steinsgate, look we have a breakthrough'. Listening to the situation, Steinsgate’s eyes glittered immediately, 'Oh my oh my Colonel I know exactly what we are looking for! Months ago my team and I stumbled on some information we got from one of the robots we captured. It had a damaged chip but we were able to salvage it, although there wasn’t much we could recover. One of the few things though was a reference code. What was it umm?...800689251008MINI. Yes, that was it but it was atop a barcode which when we scanned, which by the way took hours since it wasn’t the regular encryption we use, gave us the Model number and developer. Model number being the number I mentioned and developer being Mainframe Internetwork Intelligence, MINI for short. Do you get where I’m going with this?' Immediately it clicked in both the Colonel and the boys heads that MINI here isn’t a car but where the robots are made which is known to be the tall tinted building at the north end of the city, guarded by swarming robots. 'This is where Maddison might be!' shouted the Colonel. 'Yes, yes and they probably removed any information of this place on the internet making it impossible to link the code we decrypted to it if anyone ever found out, sending us on a wild goose chase.' Bob echoed. 'But how are we gonna get in there? It’s heavily guarded and outright impossible to breach, in fact that whole place is a ghost town to humans since it’s densely populated by robots.' Replied the colonel. 'We have to try, it’s our only shot, Bob and I need to get home and we’ll be sitting ducks as well if we just wait around doing nothing.' As though in a mental battle with himself the Colonel grumbled as he thought hard. 'Fine, we’ll give it a shot but we need to hatch an intricate plan to enter the building, one devoid of any casualties as I’ve already lost so many men in this war already. We will gather first thing in the morning to discuss this in detail as it’s already night time and the Night patrollers will soon arrive. For now, we retire to our beds and recuperate.'")
choose(["cc. NEXT"])
print("'01110111 01101000 01100101 01110010 01100101 00100000 01100001 01110010 01100101 00100000 01110100 01101000 01100101 00100000 01101000 01110101 01101101 01100001 01101110 01110011 00100001' (where are the humans!) communicate the robots among themselves.")
print("As a patrol vehicle exits at the scout site Bob and Mike understand that it is quite possible that the Colonel and his men are in danger. They quickly exit the campsite and each grabs a metal rod so they can use it for protection. They began following the patrol vehicle and reach the foot of the MINI building. Their theory was right. This seems to be the base of the robots. 'The Hive' as both state while gasping. They look up at the towering building and gulp with fear. In hopes of saving the Colonel and going back to their time, they have to enter this building. With the courage to finally enter, they both move amongst the robots and the walls of the corporation with complete stealth, not to be seen at all. They finally reach the elevators and go to the highest level of the building in hopes of reaching the Colonel and Dr Maddison.")
choose(["dd. Enter the Elevator"])
print("With their luck, the elevator door gets stuck and they are given to methods of opening the door. Either to brute force their way through it or to rewire it.")
options = ["o. Rewire", "p. Brute force way"]
return choose(options)

def sixth(choice):
if choice == "m":
print("They try to connect to the internal software! After this, Mike and Bob will be able to extract the images from any car! Using the machine learning principles, Mike and Bob can code a new software using Python3 which could identify Dr. Maddison! This means that they will not check all the cars! It put them at a risk tho as the car internal software contained a powerful firewall that detects any unwanted entry. Which would lead to them being detected and their location being pinpointed. ")
options = ["q. take the risk", "r. do not take the risk"]
input_choice = choose(options)
if choice == "n":
print("In hope of finding new information that could lead them somewhere, they begin to hastily move among the cars. Only for them to get spotted by everybody, including the patrol robots that have been sent to capture them the same way that Dr Maddison was taken. It only caused them to waste a lot of time and to be put in danger.")
input_choice = None
if choice == "o":
print("To their luck there is absolutely no way for them to exit the elevator other than to rewire the elevator doors to force them to open. So they choose to rewire it.")
choose(["s. 'What next said Bob'", "t. 'What next said Bob'"])
print("A mist appears with a green colour to it, they have no idea what it is but they begin to lose focus and consciousness. A minute of being unconscious they find that Colonel Sanders clothes were on the commander robot, as for Dr Maddison she has emerged from the dark with a half-human half-robot body. They have finally reached the truth, not their goal. Dr Maddison was the reason of this war.")
print("THE END?")
input_choice = None
if choice == "p":
print("They roll up their sleeves and hold a power stance, their muscles pop out and they begin to turn red as they use all their energy and strength to make their muscles work on this. Finally, they open the wire panel and reprogram the elevator doors. They both knew they had no chance of using force. CLUNK!! A noise emits from within the elevator doors and it opens finally they have reached them. There they are, their whole goal has been completed.")
choose(["u. 'What next said Bob'", "v. 'What next said Bob'"])
print("A mist appears with a green colour to it, they have no idea what it is but they begin to lose focus and consciousness. A minute of being unconscious they find that Colonel Sanders clothes were on the commander robot, as for Dr Maddison she has emerged from the dark with a half-human half-robot body. They have finally reached the truth, not their goal. Dr Maddison was the reason of this war.")
print("THE END?")
input_choice = None
return input_choice

def seventh(choice):
if choice == "q":
print("As a patrol vehicle exits at the scout site Bob and Mike understand that it is quite possible that they could get in danger. However, they quickly exit the campsite and each grabs a metal rod so they can use it for protection. They began following the patrol vehicle and reach the foot of the MINI building. Their theory was right. This seems to be the base of the robots. The Hive as both state while gasping. They look up at the towering building and gulp with fear. In hopes of saving the Colonel and going back to their time, they have to enter this building. With the courage to finally enter, they both move amongst the robots and the walls of the corporation with complete stealth, not to be seen at all. They finally reach the elevators and go to the highest level of the building in hopes of reaching the Colonel and Dr Maddison.")
choose(["w. Enter the elevator"])
else:
print("Unfortunately, they have missed out on a crucial point of their lives and for their survival. They have lost it all, it's over now they are as good as dead.")
return None
from timelines import *

if __name__ == "__main__":
choice = intro()
story = [first, second, third, fourth, fifth, sixth, seventh]
for func in story:
choice = func(choice)
for part in story:
choice = part(choice)
if choice is None:
break
Binary file not shown.

0 comments on commit 38741c6

Please sign in to comment.