From 0b50529598e8563e49c9c09c11c3e29c2d8b4622 Mon Sep 17 00:00:00 2001 From: giggzze Date: Thu, 1 Oct 2020 14:34:05 +0100 Subject: [PATCH 01/30] init commit --- StoryD7.py | 1 + 1 file changed, 1 insertion(+) diff --git a/StoryD7.py b/StoryD7.py index 2185413..d75b9a8 100644 --- a/StoryD7.py +++ b/StoryD7.py @@ -1 +1,2 @@ # Put story into here +#something \ No newline at end of file From 8c1a17b74ec774853d3347c26d5433a262266592 Mon Sep 17 00:00:00 2001 From: Joel Utoware Date: Fri, 2 Oct 2020 09:13:41 +0100 Subject: [PATCH 02/30] init --- StoryD7.py | 27 +++------------------------ 1 file changed, 3 insertions(+), 24 deletions(-) diff --git a/StoryD7.py b/StoryD7.py index 4a3b0e7..bdb4cdf 100644 --- a/StoryD7.py +++ b/StoryD7.py @@ -1,26 +1,5 @@ -# Put story into here -#Mateusz code - - - - - - - - - - - - - - - - - -#someone else - - - - +#next=False +#while next==False: +print("After he uses the time machine for the second time, he arrives in New York in the 21st century. He saw so many things different, at the start he was excited because it was everything new and they have so many things to learn. In the 21st century, the technology is massive they have self-driving cars, pervasive smartphones, hoverboards, household robots that clean, cook and practically can do everything and he wants to learn how things do what they do. He was a little bit lost at the beginning, but he was willing to learn everything, so he starts working at a bar to learn their language and their costumes. One year later he starts to learn more about the technology around him and he starts to understand how machines do what they do. He reaches a point when he is working at a big technology company in New York, he bought a new house a good car but he was not satisfied. It felt like something was missing but he doesn’t know why... Maybe he already learnd everything he wanted at the 21st century.\n When Ricardo realized that a time travel with the time machine requires a real variety of resources he noticed that the several travells he made had already drained its batteries and it needs recharging, but plutonium (the main source of energy) is not so easy to find in the present period. After some thinking Ricardo came up with two ideas for completing his plan to travel in time and space. While the [[first idea|First idea]] he had was great and would probably worked well he chose the [[second ideia|Second idea]]\n He starts to create his technology and try to improve the time machine so he can go wherever he wants and the time he wants. [[Twenty years have passed...|Twenty years later]]") From 7d96b0ebd43a1573513bb7cfd360920ccaa6ab65 Mon Sep 17 00:00:00 2001 From: giggzze Date: Fri, 2 Oct 2020 09:27:08 +0100 Subject: [PATCH 03/30] start --- StoryD7.py | 41 ++++++++++- __pycache__/story.cpython-38.pyc | Bin 0 -> 6057 bytes story.py | 119 +++++++++++++++++++++++++++++++ 3 files changed, 158 insertions(+), 2 deletions(-) create mode 100644 __pycache__/story.cpython-38.pyc create mode 100644 story.py diff --git a/StoryD7.py b/StoryD7.py index d75b9a8..f3fd714 100644 --- a/StoryD7.py +++ b/StoryD7.py @@ -1,2 +1,39 @@ -# Put story into here -#something \ No newline at end of file +import story +# the logic for the sotry... + + +# get user input +def choice(): + choice = input('...').lower() + return choice + +# clear the screen + +# other links +def context(): + print('would you like to find out anymore information about any of the following?') + print(''' + A) The Screen B) Time Travel + c) 19th Of September D) Continue With The Choice + ''') + +# main +def main(): + print() + print(story.chairStory) + context() + + if choice() == 'a': + print(story.screen) + elif choice() == 'b': + print(story.timeTravel) + elif choice() == 'c': + print(story.sept) + else: + print(story.decision) + + + + +main() + diff --git a/__pycache__/story.cpython-38.pyc b/__pycache__/story.cpython-38.pyc new file mode 100644 index 0000000000000000000000000000000000000000..e42dddf904b11bc32df8715c0ea811bd3b49d588 GIT binary patch literal 6057 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 Rz1?5z-q^j$-y6F>`5#o1S26$q literal 0 HcmV?d00001 diff --git a/story.py b/story.py new file mode 100644 index 0000000..2c97aa2 --- /dev/null +++ b/story.py @@ -0,0 +1,119 @@ +# store all the story choices the user can make during the game... +# start of the second block + +chairStory = ''' + screen appeared towards his face displaying numerous years and locations + and despite being very confused and clueless by everything that was happening, + moving his arm to find answer to feed his curiosity he accidentally pressed + the button ‘Year 1900-2000’.\n + + Automatically, he vanished in thin air abruptly, swallowing him up like a + deadly python. Within second he popped back to the chair like an magician.\n + + When he found himself, he was sweating profusely, and in shock, regretting the journey. + Petrified with fear, in a matter of seconds, he left a cave for something that seemed + to be wide roads. He looked around swiftly, rotating his head like spinning ball- + it was all new to him. Huge constructions and building, people dressed in different + fashion, very loud and busy. He accidentally tripped on coco cola glass bottle, + nearly hurt him. He couldn’t wrap his mind around to what happened to him. + Everything was seemingly bizarre to him. Vehicles beeping at each other, + people yelling at each other, raining rapidly. The method of transportation was no + longer completed on carts, he didn’t even see a horse and that was when he realized + that he had travelled in time. Gobsmacked, worried for his life, + he felt lost and he didn’t know where he was. Finally he searched for answers, + he decided to ask the first person who passed him where he was and what year he had + travelled in time, surprisingly the person laughed at him and went passed him. + He then noticed a man selling newspapers, he noticed the name and date on the front + cover of one of the newspapers being sold.\n + + 'News London - [[19th of September 1950'|19th Sep]] + + Overwhelmed with emotion, he realised he made the best discovery of his life. + He was contemplating as to what he should do next. \n +''' + +#links to other pages +# black holographic screen - screen +screen =''' + A holographic screen is a two dimensional display technology that uses coated + glass media for the projection surface of a video projector. + + + ''' + +# link [[Back|Chair story]] + +# travelled in time - time trevel +timeTravel = ''' + Time travel is the concept of movement between certain points in time, analogous + to movement between different points in space by an object or a person, typically + with the use of a hypothetical device known as a time machine.''' + +# link [[Back|Chair story]] + +# 19th of september - 19th sept +sept = ''' + The following events occurred in 19th September 1950 + In a vote of confidence in the British House of Commons, the Labour government of + Prime Minister Clement Attlee was sustained by a margin of only six votes, 306 to 300. + Some of the Labour Party MPs, absent because of illness, were brought in by the party + so that they could vote. + + The European Payments Union was created, for the benefit of fifteen Western European nations, + to stabilize their currencies. The United States contributed $350,000,000 to the endowment fund. + + A the opening of the fifth annual session of the United Nations General Assembly, the United States, + United Kingdom and France sent word to the Soviet Union, that an attack by any nation on West Berlin, + or on West Germany, would be considered an act of war against the three Western powers. + + The UN General Assembly voted 33-6 to reject a proposal to expel the Republic of China + (located on the island of Taiwan) and to replace representation of the Chinese people with a delegation + from the Communist government of the People's Republic of China. + + The musical film The Toast of New Orleans starring Mario Lanza, Kathryn Grayson and David Niven + premiered in New Orleans. + + reference: https://en.wikipedia.org/wiki/September_1950#September_19,_1950_(Tuesday)''' + +# link [[Back|Chair story]] + +# next - decisions + +decision = ''' + 1) Leave behind his family and stay in this era + + OR + + 2) Come back to his era and use the machine to his advantage and reserach + ''' +decision2 = ' He eventually came to a conclusion...' + +# go back to his family +back = ' Come back to his family. Share his discovery to his family and use it for good use.' + +#leave family +leave = ''' + Enjoy a luxurious life years to come. Evolve and live better and advanced life without family. + Always having the guilt of leaving the family in other era.''' + + +# conclusion + +con = ''' + He went back to the virtual cave + and sat down on the mighty chair + and whizzed back to the initial location. + His Era. + + He had travelled more than 1000 years in history, and he realized that he could learn new things, + travel from year to year, whenever he wanted and become the most knowledgeable man ever. + + He grabbed a sheet and a pen and started writing everything he didn’t know and tried to draw them + to compare the differences between the evolutions of the years. He started by designing the wide roads, + following the big constructions that he ended up realizing was where people had their homes, but even so, + he still did not realize what was the means of transport that people used. + He then travells again... +''' + + +print(back) \ No newline at end of file From 82651e9b61a3b286c8692da0bfd892504e45a459 Mon Sep 17 00:00:00 2001 From: Joel Utoware Date: Fri, 2 Oct 2020 09:38:33 +0100 Subject: [PATCH 04/30] 21st --- StoryD7.py | 42 +++++++++++++++++++++++++++++++++++++++--- 1 file changed, 39 insertions(+), 3 deletions(-) diff --git a/StoryD7.py b/StoryD7.py index bdb4cdf..9426aab 100644 --- a/StoryD7.py +++ b/StoryD7.py @@ -1,5 +1,41 @@ -#next=False -#while next==False: -print("After he uses the time machine for the second time, he arrives in New York in the 21st century. He saw so many things different, at the start he was excited because it was everything new and they have so many things to learn. In the 21st century, the technology is massive they have self-driving cars, pervasive smartphones, hoverboards, household robots that clean, cook and practically can do everything and he wants to learn how things do what they do. He was a little bit lost at the beginning, but he was willing to learn everything, so he starts working at a bar to learn their language and their costumes. One year later he starts to learn more about the technology around him and he starts to understand how machines do what they do. He reaches a point when he is working at a big technology company in New York, he bought a new house a good car but he was not satisfied. It felt like something was missing but he doesn’t know why... Maybe he already learnd everything he wanted at the 21st century.\n When Ricardo realized that a time travel with the time machine requires a real variety of resources he noticed that the several travells he made had already drained its batteries and it needs recharging, but plutonium (the main source of energy) is not so easy to find in the present period. After some thinking Ricardo came up with two ideas for completing his plan to travel in time and space. While the [[first idea|First idea]] he had was great and would probably worked well he chose the [[second ideia|Second idea]]\n He starts to create his technology and try to improve the time machine so he can go wherever he wants and the time he wants. [[Twenty years have passed...|Twenty years later]]") +next=False +while next==False: + #ensures the correct option leads to the next section + print(""" + After he uses the time machine for the second time, + he arrives in New York in the 21st century. He saw so many things different, at the start he was excited because it was everything new and they have so many things to learn. In the 21st century, the technology is massive they have self-driving cars, pervasive smartphones, hoverboards, household robots that clean, cook and practically can do everything and he wants to learn how things do what they do. He was a little bit lost at the beginning, but he was willing to learn everything, so he starts working at a bar to learn their language and their costumes. One year later he starts to learn more about the technology around him and he starts to understand how machines do what they do. He reaches a point when he is working at a big technology company in New York, he bought a new house a good car but he was not satisfied. It felt like something was missing but he doesn’t know why... Maybe he already learnd everything he wanted at the 21st century. + + When Ricardo realized that a time travel with the time machine requires a real variety of resources he noticed that the several travells he made had already drained its batteries and it needs recharging, but plutonium (the main source of energy) is not so easy to find in the present period. After some thinking Ricardo came up with two ideas for completing his plan to travel in time and space. While the [first] idea he had was great and would probably worked well he chose the [second] idea + + He starts to create his technology and try to improve the time machine so he can go wherever he wants and the time he wants. [twenty] years have passed...""") + #main paragraph + + choice=input("Enter choice by typing the word in square brackets") + #allows user to input choices + if choice=="first": + print("""He can become a famous scientist and gain the trust of researchers to get plutonium. + + -Returning to previous page-""") + + elif choice=="second": + print("""He can continue to develop the project and modify the time machine and further steal the plutonium. + -Returning to previous page-""") + elif choice=="twenty": + next=True + print("""He still hasn’t found a way to fix the machine, he travels to Tokyo to meet a friend who can try to help him, when he arrives in Tokyo he saw that technology was superior to new York and he thought “how will Tokyo be in 2090?”. + + Five years later he finds a way to fix the time machine and he started preparing to travel to Tokyo 2090. + + Ricardo landed in Tokyo, 2090. From being a technological powerhouse at the start of the 21st century, Tokyo is now the largest and most dominant capital globally, thanks to their investment in the science area. Everything is very accessible and developed, both economically and infrastructurally. From the road markings to the gigantic billboards present in every uber, the streets are full of LEDs everywhere, even more than before! Some people dislike it and say it's ugly and visual pollution, while others love it and find it fascinating. + + He decided to take in the views of the city whilst he was there""") + else: + print("Please ensure the exact word is used(including case)") + #makes sure choice is valid + +next=False +while next==False: + + print: From 7e642c94952db82f7e42550816d3b13f30650bc5 Mon Sep 17 00:00:00 2001 From: Joel Utoware Date: Fri, 2 Oct 2020 09:51:01 +0100 Subject: [PATCH 05/30] DON --- StoryD7.py | 28 +++++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/StoryD7.py b/StoryD7.py index 9426aab..b93bd90 100644 --- a/StoryD7.py +++ b/StoryD7.py @@ -37,5 +37,31 @@ while next==False: next=False while next==False: - print: + print("""Japan had changed so much since the start of the 21st century. + + Japan is now fully autonomous. There is no need to work anymore. Doctors have been replaced by medical robots present in your own home, programmers were replaced by computers that feed themselves lines of code. Every essential worker has been replaced by robots. + + Ricardo is shocked. He could have never seen such a significant development since he was still in the 17th century when he decided to go on this adventure. Also, do you remember Robocop? That's a real thing in 2090, although people don't trust the security of these armed droids, and don't trust the people behind the making of it. It is a strange feeling; Ricardo stands here in the distant future where things he can only dream about exist. Now he could choose to [stay] here in this amazing new world or [return] to his original time in order to be with his family. Maybe Ricardo could even do [both], stay in the future for a while then return afterwards""") + + choice=input("Enter choice by typing the word in square brackets (each chioce shall lead to a diferent ending)") + + if choice== "stay": + next=True + print("After thinking long and hard about the decision Ricardo decided to start a brand new life in Japan. He had manged to get a simple job of doing maintenance on robots. It was surprisingly easy for him to get the job as the only thing he had to do was ask each robot a series of questions. Now he is living a good life with new technology and money, the only thing missing is that there is nothing to fill the void in his heart where his family would be.") + + elif choice== "return": + next=True + print("Without hesitation Ricardo returns home, to his amazement it seems no time has passed since his departure. Thanks to this he does not need to explain what happened if it had even happened at all.") + + elif choice== "both": + next=True + print("He decided to first gain some money and knowledge in Japan. This not only allows Ricardo to be able to use this back in the present it will also make him the smartest in his time period. Finally, after several months, he decides to go back to his home and check how things were over there. When he got to his island, everything was the same, except his family wasn't there.") + + else: + print("Please ensure the exact word is used(including case)") +print("""Thank you for playing + +___THE END___""") + + From 8488c0fc0aa946c1903fe8f0f9da16112a5eb919 Mon Sep 17 00:00:00 2001 From: Joel Utoware Date: Fri, 2 Oct 2020 09:52:44 +0100 Subject: [PATCH 06/30] , --- StoryD7.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/StoryD7.py b/StoryD7.py index b93bd90..8a03034 100644 --- a/StoryD7.py +++ b/StoryD7.py @@ -10,7 +10,7 @@ while next==False: He starts to create his technology and try to improve the time machine so he can go wherever he wants and the time he wants. [twenty] years have passed...""") #main paragraph - choice=input("Enter choice by typing the word in square brackets") + choice=input("\nEnter choice by typing the word in square brackets") #allows user to input choices if choice=="first": print("""He can become a famous scientist and gain the trust of researchers to get plutonium. From 3cb7549f898d070632fe9c768ab3e027db28d50e Mon Sep 17 00:00:00 2001 From: Joel Utoware Date: Fri, 2 Oct 2020 10:05:12 +0100 Subject: [PATCH 07/30] done --- StoryD7.py | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/StoryD7.py b/StoryD7.py index 8a03034..20cd017 100644 --- a/StoryD7.py +++ b/StoryD7.py @@ -2,7 +2,7 @@ next=False while next==False: #ensures the correct option leads to the next section print(""" - After he uses the time machine for the second time, + \nAfter he uses the time machine for the second time, he arrives in New York in the 21st century. He saw so many things different, at the start he was excited because it was everything new and they have so many things to learn. In the 21st century, the technology is massive they have self-driving cars, pervasive smartphones, hoverboards, household robots that clean, cook and practically can do everything and he wants to learn how things do what they do. He was a little bit lost at the beginning, but he was willing to learn everything, so he starts working at a bar to learn their language and their costumes. One year later he starts to learn more about the technology around him and he starts to understand how machines do what they do. He reaches a point when he is working at a big technology company in New York, he bought a new house a good car but he was not satisfied. It felt like something was missing but he doesn’t know why... Maybe he already learnd everything he wanted at the 21st century. When Ricardo realized that a time travel with the time machine requires a real variety of resources he noticed that the several travells he made had already drained its batteries and it needs recharging, but plutonium (the main source of energy) is not so easy to find in the present period. After some thinking Ricardo came up with two ideas for completing his plan to travel in time and space. While the [first] idea he had was great and would probably worked well he chose the [second] idea @@ -13,17 +13,17 @@ while next==False: choice=input("\nEnter choice by typing the word in square brackets") #allows user to input choices if choice=="first": - print("""He can become a famous scientist and gain the trust of researchers to get plutonium. + print("""\nHe can become a famous scientist and gain the trust of researchers to get plutonium. -Returning to previous page-""") elif choice=="second": - print("""He can continue to develop the project and modify the time machine and further steal the plutonium. + print("""\nHe can continue to develop the project and modify the time machine and further steal the plutonium. -Returning to previous page-""") elif choice=="twenty": next=True - print("""He still hasn’t found a way to fix the machine, he travels to Tokyo to meet a friend who can try to help him, when he arrives in Tokyo he saw that technology was superior to new York and he thought “how will Tokyo be in 2090?”. + print("""\nHe still hasn’t found a way to fix the machine, he travels to Tokyo to meet a friend who can try to help him, when he arrives in Tokyo he saw that technology was superior to new York and he thought “how will Tokyo be in 2090?”. Five years later he finds a way to fix the time machine and he started preparing to travel to Tokyo 2090. @@ -31,35 +31,35 @@ while next==False: He decided to take in the views of the city whilst he was there""") else: - print("Please ensure the exact word is used(including case)") + print("\nPlease ensure the exact word is used(including case)") #makes sure choice is valid - +###----ENDING----### next=False while next==False: - print("""Japan had changed so much since the start of the 21st century. + print("""\nJapan had changed so much since the start of the 21st century. Japan is now fully autonomous. There is no need to work anymore. Doctors have been replaced by medical robots present in your own home, programmers were replaced by computers that feed themselves lines of code. Every essential worker has been replaced by robots. Ricardo is shocked. He could have never seen such a significant development since he was still in the 17th century when he decided to go on this adventure. Also, do you remember Robocop? That's a real thing in 2090, although people don't trust the security of these armed droids, and don't trust the people behind the making of it. It is a strange feeling; Ricardo stands here in the distant future where things he can only dream about exist. Now he could choose to [stay] here in this amazing new world or [return] to his original time in order to be with his family. Maybe Ricardo could even do [both], stay in the future for a while then return afterwards""") - choice=input("Enter choice by typing the word in square brackets (each chioce shall lead to a diferent ending)") + choice=input("\nEnter choice by typing the word in square brackets (each chioce shall lead to a diferent ending)") if choice== "stay": next=True - print("After thinking long and hard about the decision Ricardo decided to start a brand new life in Japan. He had manged to get a simple job of doing maintenance on robots. It was surprisingly easy for him to get the job as the only thing he had to do was ask each robot a series of questions. Now he is living a good life with new technology and money, the only thing missing is that there is nothing to fill the void in his heart where his family would be.") + print("\nAfter thinking long and hard about the decision Ricardo decided to start a brand new life in Japan. He had manged to get a simple job of doing maintenance on robots. It was surprisingly easy for him to get the job as the only thing he had to do was ask each robot a series of questions. Now he is living a good life with new technology and money, the only thing missing is that there is nothing to fill the void in his heart where his family would be.") elif choice== "return": next=True - print("Without hesitation Ricardo returns home, to his amazement it seems no time has passed since his departure. Thanks to this he does not need to explain what happened if it had even happened at all.") + print("\nWithout hesitation Ricardo returns home, to his amazement it seems no time has passed since his departure. Thanks to this he does not need to explain what happened if it had even happened at all.") elif choice== "both": next=True - print("He decided to first gain some money and knowledge in Japan. This not only allows Ricardo to be able to use this back in the present it will also make him the smartest in his time period. Finally, after several months, he decides to go back to his home and check how things were over there. When he got to his island, everything was the same, except his family wasn't there.") + print("\nHe decided to first gain some money and knowledge in Japan. This not only allows Ricardo to be able to use this back in the present it will also make him the smartest in his time period. Finally, after several months, he decides to go back to his home and check how things were over there. When he got to his island, everything was the same, except his family wasn't there.") else: - print("Please ensure the exact word is used(including case)") -print("""Thank you for playing + print("\nPlease ensure the exact word is used(including case)") +print("""\nThank you for playing ___THE END___""") From b59b68a5545f623218dbf14e6dabeae14661d6d7 Mon Sep 17 00:00:00 2001 From: "Daniel Sherrington (sherrind)" Date: Fri, 2 Oct 2020 10:25:35 +0100 Subject: [PATCH 08/30] ds --- StoryD7.py | 101 ++++++++++++++++++++++++++++++++++++++++++----------- 1 file changed, 81 insertions(+), 20 deletions(-) diff --git a/StoryD7.py b/StoryD7.py index 4a3b0e7..bd0dfaa 100644 --- a/StoryD7.py +++ b/StoryD7.py @@ -1,24 +1,85 @@ -# Put story into here -#Mateusz code - - - - - - - - - - - - - - - - - -#someone else +def dansStory(): + listOfYes =["Yes", "yes", "Yes please", "yes please", "Yeah", "yeah"] + playerName = input("Hello, what is your name? ") + Ans1 = input("Welcome " + playerName + " would you like to take take part in our story? ") + if Ans1 in listOfYes: + print("Thank you, enjoy!") + else: + print("Sorry to hear that, goodbye") + exit() + print("In the seventh century, in a distant place from popular civilization there was a man named Ricardo.") + Ans2 = input("Would you like to know more about Ricardo? ") + if Ans2 in listOfYes: + print("") + print("Ricardo was a very respectful man for his kindness with other people and his authority when something was getting serious. He was a family man with 3 little brothers and would never do something that would hurt them.") + print("Continuing the story...") + + else: + print("Continuing the story...") + print("He was the leader of a small island that was surrounded by others in a big ocean basin") + print("Having the same routines day after day he was getting tired of it so he decided to challenge himself and leave the island to make a new discovery") + print("Something new that nobody had discovered before") + print("He had two directions to go to. It was a decision between North and South") + print("") + Ans3 = input("Would you like to know more about the 2 routes ahead? ") + if Ans3 in listOfYes: + Ans4 = input(" Please select an option on what you wish to know about: 1) North, 2) South, 3) North and South ") + if Ans4 == "1": + print("") + print("North wasn´t the easiest path for him but it wasn't impossible either.") + print("This wasy he was sure he would face difficulties and his brothers would have to deal with a lot more difficulties. It would be more adventurous and challenging.") + print("Continuing the story...") + elif Ans4 == "2": + print("") + print("South was a bit easier but it had some difficulties coming with it as well.") + print("It wasn´t going to be as simple as living his normal day to day life but some stories he had heard and maps made by previous attempts would help him a lot having a safer trip.") + print("Continuing the story...") + elif Ans4 == "3": + print("") + print("North wasn´t the easiest path for him but it wasn't impossible either.") + print("This wasy he was sure he would face difficulties and his brothers would have to deal with a lot more difficulties. It would be more adventurous and challenging.") + print("South was a bit easier but it had some difficulties coming with it as well.") + print("It wasn´t going to be as simple as living his normal day to day life but some stories he had heard and maps made by previous attempts would help him a lot having a safer trip.") + print("Continuing the story...") + else: + print("Continuing the story...") + else: + print("Continuing the story...") + print("") + print("He took his time, thought about it and one day he finally decided to go ") + print("1) Calm and easy (South)" + " or " + "2) Adventurous and hard (North)") + Ans5 = input("So what path do you choose? ") + print("and talk to his wife Ana...") + if Ans5 == "1": + print("") + print("Ana, I know you don't like me leaving and going on adventures but I gave a lot of thought into it and I know I am able to do this and bring something home that would make you proud. I´ll be leaving next week and my brothers will come with me... We'll be going to South" + "South? I don't know what do you expect to discover Ricardo, I hope you're sure about this..." + "I believe that there is something on this planet that no one found yet and with this journey I would be able to go down is history over the years. Please trust me Ana!" + "Ok, my dear, take care of yourself and your brothers and may God be with you.") + elif Ans5 == "2": + print("") + print("Ana, I know you don't like me leaving and going on adventures but I gave a lot of thought into it and I know I am able to do this and bring something home that would make you proud. I´ll be leaving next week and my brothers will come with me... We'll be going to North" + "North? I don't know what do you expect to discover Ricardo, I hope you're sure about this..." + "I believe that there is something on this planet that no one found yet and with this journey I would be able to go down is history over the years. Please trust me Ana!" + "Ok, my dear, take care of yourself and your brothers and may God be with you.") + else: + print("Continuing the story...") + print("") + print("After the talk...") + print("He ordered the workers of the island to build in a working week a boat that could carry at most four people and some supplies for the trip.") + print("After the boat was finished, they started the journey of their lifetime which they expected to be the best one. In the middle of the ocean,") + print("when it was getting dark, a storm was coming towards them.") + print("") + print("My fellow brothers don't panic! Everything will be fine! Paul turn the sail to the left!") + print("But Ricardo, we don't stand a chance of what's coming! This will be messed up in many ways.") + print("") + print("Eventually, the storm appeared over them and the boat was collapsing due to strong waves of the ocean.") + print("At that moment he could see his brothers struggling but he felt helpless... He had a difficult choice to make.") + Ans6 = input("Are you going to 'risk your life to save your brother', or 'stay where you are and keep holding onto safety'") + print("") + print("After the decision...") +dansStory() From 3e86a0597cfc6175a83ab5da7638bf5a7279b14d Mon Sep 17 00:00:00 2001 From: Joel Utoware Date: Fri, 2 Oct 2020 10:27:46 +0100 Subject: [PATCH 09/30] . --- StoryD7.py | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/StoryD7.py b/StoryD7.py index 20cd017..35539cc 100644 --- a/StoryD7.py +++ b/StoryD7.py @@ -5,23 +5,23 @@ while next==False: \nAfter he uses the time machine for the second time, he arrives in New York in the 21st century. He saw so many things different, at the start he was excited because it was everything new and they have so many things to learn. In the 21st century, the technology is massive they have self-driving cars, pervasive smartphones, hoverboards, household robots that clean, cook and practically can do everything and he wants to learn how things do what they do. He was a little bit lost at the beginning, but he was willing to learn everything, so he starts working at a bar to learn their language and their costumes. One year later he starts to learn more about the technology around him and he starts to understand how machines do what they do. He reaches a point when he is working at a big technology company in New York, he bought a new house a good car but he was not satisfied. It felt like something was missing but he doesn’t know why... Maybe he already learnd everything he wanted at the 21st century. - When Ricardo realized that a time travel with the time machine requires a real variety of resources he noticed that the several travells he made had already drained its batteries and it needs recharging, but plutonium (the main source of energy) is not so easy to find in the present period. After some thinking Ricardo came up with two ideas for completing his plan to travel in time and space. While the [first] idea he had was great and would probably worked well he chose the [second] idea + When Ricardo realized that a time travel with the time machine requires a real variety of resources he noticed that the several travells he made had already drained its batteries and it needs recharging, but plutonium (the main source of energy) is not so easy to find in the present period. After some thinking Ricardo came up with two ideas for completing his plan to travel in time and space. While the [1]first idea he had was great and would probably worked well he chose the [2]second idea - He starts to create his technology and try to improve the time machine so he can go wherever he wants and the time he wants. [twenty] years have passed...""") + He starts to create his technology and try to improve the time machine so he can go wherever he wants and the time he wants. [3]twenty years have passed...""") #main paragraph - choice=input("\nEnter choice by typing the word in square brackets") + choice=int(input("\nEnter choice by typing the number in square brackets")) #allows user to input choices - if choice=="first": + if choice==1: print("""\nHe can become a famous scientist and gain the trust of researchers to get plutonium. -Returning to previous page-""") - elif choice=="second": + elif choice==2: print("""\nHe can continue to develop the project and modify the time machine and further steal the plutonium. -Returning to previous page-""") - elif choice=="twenty": + elif choice==3: next=True print("""\nHe still hasn’t found a way to fix the machine, he travels to Tokyo to meet a friend who can try to help him, when he arrives in Tokyo he saw that technology was superior to new York and he thought “how will Tokyo be in 2090?”. @@ -31,7 +31,7 @@ while next==False: He decided to take in the views of the city whilst he was there""") else: - print("\nPlease ensure the exact word is used(including case)") + print("\nPlease ensure that a valid number is entered ") #makes sure choice is valid ###----ENDING----### next=False @@ -41,24 +41,24 @@ while next==False: Japan is now fully autonomous. There is no need to work anymore. Doctors have been replaced by medical robots present in your own home, programmers were replaced by computers that feed themselves lines of code. Every essential worker has been replaced by robots. - Ricardo is shocked. He could have never seen such a significant development since he was still in the 17th century when he decided to go on this adventure. Also, do you remember Robocop? That's a real thing in 2090, although people don't trust the security of these armed droids, and don't trust the people behind the making of it. It is a strange feeling; Ricardo stands here in the distant future where things he can only dream about exist. Now he could choose to [stay] here in this amazing new world or [return] to his original time in order to be with his family. Maybe Ricardo could even do [both], stay in the future for a while then return afterwards""") + Ricardo is shocked. He could have never seen such a significant development since he was still in the 17th century when he decided to go on this adventure. Also, do you remember Robocop? That's a real thing in 2090, although people don't trust the security of these armed droids, and don't trust the people behind the making of it. It is a strange feeling; Ricardo stands here in the distant future where things he can only dream about exist. Now he could choose to [1]stay here in this amazing new world or [2]return to his original time in order to be with his family. Maybe Ricardo could even do [3]both, stay in the future for a while then return afterwards""") - choice=input("\nEnter choice by typing the word in square brackets (each chioce shall lead to a diferent ending)") + choice=int(input("\nEnter choice by typi2ng the number in square brackets (each chioce shall lead to a diferent ending)")) - if choice== "stay": + if choice== 1: next=True print("\nAfter thinking long and hard about the decision Ricardo decided to start a brand new life in Japan. He had manged to get a simple job of doing maintenance on robots. It was surprisingly easy for him to get the job as the only thing he had to do was ask each robot a series of questions. Now he is living a good life with new technology and money, the only thing missing is that there is nothing to fill the void in his heart where his family would be.") - elif choice== "return": + elif choice== 2: next=True print("\nWithout hesitation Ricardo returns home, to his amazement it seems no time has passed since his departure. Thanks to this he does not need to explain what happened if it had even happened at all.") - elif choice== "both": + elif choice== 3: next=True print("\nHe decided to first gain some money and knowledge in Japan. This not only allows Ricardo to be able to use this back in the present it will also make him the smartest in his time period. Finally, after several months, he decides to go back to his home and check how things were over there. When he got to his island, everything was the same, except his family wasn't there.") else: - print("\nPlease ensure the exact word is used(including case)") + print("\nPlease ensure that a valid number is entered ") print("""\nThank you for playing ___THE END___""") From 1de0dec00c354f2bee1e35b18dfd33a37230c93e Mon Sep 17 00:00:00 2001 From: Rueshelle Ferguson Date: Fri, 2 Oct 2020 10:28:01 +0100 Subject: [PATCH 10/30] sample --- StoryD7.py | 31 ++++++++++--------------------- __pycache__/story.cpython-37.pyc | Bin 0 -> 6318 bytes story.py | 5 +++-- 3 files changed, 13 insertions(+), 23 deletions(-) create mode 100644 __pycache__/story.cpython-37.pyc diff --git a/StoryD7.py b/StoryD7.py index f3fd714..c61f575 100644 --- a/StoryD7.py +++ b/StoryD7.py @@ -1,37 +1,26 @@ import story # the logic for the sotry... +# help function to display more informating about links in the story # get user input -def choice(): - choice = input('...').lower() - return choice # clear the screen -# other links -def context(): - print('would you like to find out anymore information about any of the following?') - print(''' - A) The Screen B) Time Travel - c) 19th Of September D) Continue With The Choice - ''') + # main def main(): - print() print(story.chairStory) - context() - if choice() == 'a': - print(story.screen) - elif choice() == 'b': - print(story.timeTravel) - elif choice() == 'c': - print(story.sept) - else: - print(story.decision) - + print(story.decision) + a = int(input('Please select 1 or 2...')) + if a == 1: + print(story.leave) + elif a == 2: + print(story.back) + print(story.decision2) + print(story.con) diff --git a/__pycache__/story.cpython-37.pyc b/__pycache__/story.cpython-37.pyc new file mode 100644 index 0000000000000000000000000000000000000000..e06405bffa6507545269f475ab9de0eba2e313fa GIT binary patch literal 6318 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 Date: Fri, 2 Oct 2020 10:30:37 +0100 Subject: [PATCH 11/30] Update StoryD7.py --- StoryD7.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/StoryD7.py b/StoryD7.py index 35539cc..a6b2dd7 100644 --- a/StoryD7.py +++ b/StoryD7.py @@ -3,11 +3,11 @@ while next==False: #ensures the correct option leads to the next section print(""" \nAfter he uses the time machine for the second time, - he arrives in New York in the 21st century. He saw so many things different, at the start he was excited because it was everything new and they have so many things to learn. In the 21st century, the technology is massive they have self-driving cars, pervasive smartphones, hoverboards, household robots that clean, cook and practically can do everything and he wants to learn how things do what they do. He was a little bit lost at the beginning, but he was willing to learn everything, so he starts working at a bar to learn their language and their costumes. One year later he starts to learn more about the technology around him and he starts to understand how machines do what they do. He reaches a point when he is working at a big technology company in New York, he bought a new house a good car but he was not satisfied. It felt like something was missing but he doesn’t know why... Maybe he already learnd everything he wanted at the 21st century. +he arrives in New York in the 21st century. He saw so many things different, at the start he was excited because it was everything new and they have so many things to learn. In the 21st century, the technology is massive they have self-driving cars, pervasive smartphones, hoverboards, household robots that clean, cook and practically can do everything and he wants to learn how things do what they do. He was a little bit lost at the beginning, but he was willing to learn everything, so he starts working at a bar to learn their language and their costumes. One year later he starts to learn more about the technology around him and he starts to understand how machines do what they do. He reaches a point when he is working at a big technology company in New York, he bought a new house a good car but he was not satisfied. It felt like something was missing but he doesn’t know why... Maybe he already learnd everything he wanted at the 21st century. - When Ricardo realized that a time travel with the time machine requires a real variety of resources he noticed that the several travells he made had already drained its batteries and it needs recharging, but plutonium (the main source of energy) is not so easy to find in the present period. After some thinking Ricardo came up with two ideas for completing his plan to travel in time and space. While the [1]first idea he had was great and would probably worked well he chose the [2]second idea +When Ricardo realized that a time travel with the time machine requires a real variety of resources he noticed that the several travells he made had already drained its batteries and it needs recharging, but plutonium (the main source of energy) is not so easy to find in the present period. After some thinking Ricardo came up with two ideas for completing his plan to travel in time and space. While the [1]first idea he had was great and would probably worked well he chose the [2]second idea - He starts to create his technology and try to improve the time machine so he can go wherever he wants and the time he wants. [3]twenty years have passed...""") +He starts to create his technology and try to improve the time machine so he can go wherever he wants and the time he wants. [3]twenty years have passed...""") #main paragraph choice=int(input("\nEnter choice by typing the number in square brackets")) @@ -25,11 +25,11 @@ while next==False: next=True print("""\nHe still hasn’t found a way to fix the machine, he travels to Tokyo to meet a friend who can try to help him, when he arrives in Tokyo he saw that technology was superior to new York and he thought “how will Tokyo be in 2090?”. - Five years later he finds a way to fix the time machine and he started preparing to travel to Tokyo 2090. +Five years later he finds a way to fix the time machine and he started preparing to travel to Tokyo 2090. - Ricardo landed in Tokyo, 2090. From being a technological powerhouse at the start of the 21st century, Tokyo is now the largest and most dominant capital globally, thanks to their investment in the science area. Everything is very accessible and developed, both economically and infrastructurally. From the road markings to the gigantic billboards present in every uber, the streets are full of LEDs everywhere, even more than before! Some people dislike it and say it's ugly and visual pollution, while others love it and find it fascinating. +Ricardo landed in Tokyo, 2090. From being a technological powerhouse at the start of the 21st century, Tokyo is now the largest and most dominant capital globally, thanks to their investment in the science area. Everything is very accessible and developed, both economically and infrastructurally. From the road markings to the gigantic billboards present in every uber, the streets are full of LEDs everywhere, even more than before! Some people dislike it and say it's ugly and visual pollution, while others love it and find it fascinating. - He decided to take in the views of the city whilst he was there""") +He decided to take in the views of the city whilst he was there""") else: print("\nPlease ensure that a valid number is entered ") #makes sure choice is valid @@ -39,9 +39,9 @@ while next==False: print("""\nJapan had changed so much since the start of the 21st century. - Japan is now fully autonomous. There is no need to work anymore. Doctors have been replaced by medical robots present in your own home, programmers were replaced by computers that feed themselves lines of code. Every essential worker has been replaced by robots. +Japan is now fully autonomous. There is no need to work anymore. Doctors have been replaced by medical robots present in your own home, programmers were replaced by computers that feed themselves lines of code. Every essential worker has been replaced by robots. - Ricardo is shocked. He could have never seen such a significant development since he was still in the 17th century when he decided to go on this adventure. Also, do you remember Robocop? That's a real thing in 2090, although people don't trust the security of these armed droids, and don't trust the people behind the making of it. It is a strange feeling; Ricardo stands here in the distant future where things he can only dream about exist. Now he could choose to [1]stay here in this amazing new world or [2]return to his original time in order to be with his family. Maybe Ricardo could even do [3]both, stay in the future for a while then return afterwards""") +Ricardo is shocked. He could have never seen such a significant development since he was still in the 17th century when he decided to go on this adventure. Also, do you remember Robocop? That's a real thing in 2090, although people don't trust the security of these armed droids, and don't trust the people behind the making of it. It is a strange feeling; Ricardo stands here in the distant future where things he can only dream about exist. Now he could choose to [1]stay here in this amazing new world or [2]return to his original time in order to be with his family. Maybe Ricardo could even do [3]both, stay in the future for a while then return afterwards""") choice=int(input("\nEnter choice by typi2ng the number in square brackets (each chioce shall lead to a diferent ending)")) From 444dc003a082d98771937cfd6f784bc53ae7249d Mon Sep 17 00:00:00 2001 From: Rueshelle Ferguson Date: Fri, 2 Oct 2020 10:32:43 +0100 Subject: [PATCH 12/30] added context --- StoryD7.py | 11 ++++++++++- __pycache__/story.cpython-37.pyc | Bin 6318 -> 6050 bytes story.py | 7 +++++++ 3 files changed, 17 insertions(+), 1 deletion(-) diff --git a/StoryD7.py b/StoryD7.py index c61f575..17a338a 100644 --- a/StoryD7.py +++ b/StoryD7.py @@ -12,7 +12,16 @@ import story # main def main(): print(story.chairStory) - + print(story.) + selectContect = (input('Please select A,B,C,D...')) + if selectContect == 'a': + print(story.screen) + elif selectContect == 'b': + print(story.timeTravel) + elif selectContect == 'c': + print(story.sept) + else: + pass print(story.decision) a = int(input('Please select 1 or 2...')) if a == 1: diff --git a/__pycache__/story.cpython-37.pyc b/__pycache__/story.cpython-37.pyc index e06405bffa6507545269f475ab9de0eba2e313fa..f39f71a911436529b5ce8592f66300b5ac6d4de4 100644 GIT binary patch delta 114 zcmZ2yxJX~!iIX!PJSWo%ej)Fh#jc7h<&o3golU#kjcWy!oecN!o$MI!py?TA`AfIniGHk delta 363 zcmZ3azs^wIiI%&W}J zFG^L&%uCBJ%1tcE%+FIuOoGZN%z&muKds+jC9+AR<}ssHvb30u&EU zE=o Date: Fri, 2 Oct 2020 10:35:08 +0100 Subject: [PATCH 13/30] . --- StoryD7.py | 20 +++++--------------- 1 file changed, 5 insertions(+), 15 deletions(-) diff --git a/StoryD7.py b/StoryD7.py index a6b2dd7..071a26b 100644 --- a/StoryD7.py +++ b/StoryD7.py @@ -3,11 +3,11 @@ while next==False: #ensures the correct option leads to the next section print(""" \nAfter he uses the time machine for the second time, -he arrives in New York in the 21st century. He saw so many things different, at the start he was excited because it was everything new and they have so many things to learn. In the 21st century, the technology is massive they have self-driving cars, pervasive smartphones, hoverboards, household robots that clean, cook and practically can do everything and he wants to learn how things do what they do. He was a little bit lost at the beginning, but he was willing to learn everything, so he starts working at a bar to learn their language and their costumes. One year later he starts to learn more about the technology around him and he starts to understand how machines do what they do. He reaches a point when he is working at a big technology company in New York, he bought a new house a good car but he was not satisfied. It felt like something was missing but he doesn’t know why... Maybe he already learnd everything he wanted at the 21st century. + he arrives in New York in the 21st century. He saw so many things different, at the start he was excited because it was everything new and they have so many things to learn. In the 21st century, the technology is massive they have self-driving cars, pervasive smartphones, hoverboards, household robots that clean, cook and practically can do everything and he wants to learn how things do what they do. He was a little bit lost at the beginning, but he was willing to learn everything, so he starts working at a bar to learn their language and their costumes. One year later he starts to learn more about the technology around him and he starts to understand how machines do what they do. He reaches a point when he is working at a big technology company in New York, he bought a new house a good car but he was not satisfied. It felt like something was missing but he doesn’t know why... Maybe he already learnd everything he wanted at the 21st century. -When Ricardo realized that a time travel with the time machine requires a real variety of resources he noticed that the several travells he made had already drained its batteries and it needs recharging, but plutonium (the main source of energy) is not so easy to find in the present period. After some thinking Ricardo came up with two ideas for completing his plan to travel in time and space. While the [1]first idea he had was great and would probably worked well he chose the [2]second idea + When Ricardo realized that a time travel with the time machine requires a real variety of resources he noticed that the several travells he made had already drained its batteries and it needs recharging, but plutonium (the main source of energy) is not so easy to find in the present period. After some thinking Ricardo came up with two ideas for completing his plan to travel in time and space. While the [1]first idea he had was great and would probably worked well he chose the [2]second idea -He starts to create his technology and try to improve the time machine so he can go wherever he wants and the time he wants. [3]twenty years have passed...""") + He starts to create his technology and try to improve the time machine so he can go wherever he wants and the time he wants. [3]twenty years have passed...""") #main paragraph choice=int(input("\nEnter choice by typing the number in square brackets")) @@ -23,13 +23,7 @@ He starts to create his technology and try to improve the time machine so he can elif choice==3: next=True - print("""\nHe still hasn’t found a way to fix the machine, he travels to Tokyo to meet a friend who can try to help him, when he arrives in Tokyo he saw that technology was superior to new York and he thought “how will Tokyo be in 2090?”. - -Five years later he finds a way to fix the time machine and he started preparing to travel to Tokyo 2090. - -Ricardo landed in Tokyo, 2090. From being a technological powerhouse at the start of the 21st century, Tokyo is now the largest and most dominant capital globally, thanks to their investment in the science area. Everything is very accessible and developed, both economically and infrastructurally. From the road markings to the gigantic billboards present in every uber, the streets are full of LEDs everywhere, even more than before! Some people dislike it and say it's ugly and visual pollution, while others love it and find it fascinating. - -He decided to take in the views of the city whilst he was there""") + print("""\nHe still hasn’t found a way to fix the machine, he travels to Tokyo to meet a friend who can try to help him, when he arrives in Tokyo he saw that technology was superior to new York and he thought “how will Tokyo be in 2090?”.\nFive years later he finds a way to fix the time machine and he started preparing to travel to Tokyo 2090.\nRicardo landed in Tokyo, 2090. From being a technological powerhouse at the start of the 21st century, Tokyo is now the largest and most dominant capital globally, thanks to their investment in the science area. Everything is very accessible and developed, both economically and infrastructurally. From the road markings to the gigantic billboards present in every uber, the streets are full of LEDs everywhere, even more than before! Some people dislike it and say it's ugly and visual pollution, while others love it and find it fascinating.\nHe decided to take in the views of the city whilst he was there""") else: print("\nPlease ensure that a valid number is entered ") #makes sure choice is valid @@ -37,11 +31,7 @@ He decided to take in the views of the city whilst he was there""") next=False while next==False: - print("""\nJapan had changed so much since the start of the 21st century. - -Japan is now fully autonomous. There is no need to work anymore. Doctors have been replaced by medical robots present in your own home, programmers were replaced by computers that feed themselves lines of code. Every essential worker has been replaced by robots. - -Ricardo is shocked. He could have never seen such a significant development since he was still in the 17th century when he decided to go on this adventure. Also, do you remember Robocop? That's a real thing in 2090, although people don't trust the security of these armed droids, and don't trust the people behind the making of it. It is a strange feeling; Ricardo stands here in the distant future where things he can only dream about exist. Now he could choose to [1]stay here in this amazing new world or [2]return to his original time in order to be with his family. Maybe Ricardo could even do [3]both, stay in the future for a while then return afterwards""") + print("\nJapan had changed so much since the start of the 21st century.\nJapan is now fully autonomous. There is no need to work anymore. Doctors have been replaced by medical robots present in your own home, programmers were replaced by computers that feed themselves lines of code. Every essential worker has been replaced by robots.\nRicardo is shocked. He could have never seen such a significant development since he was still in the 17th century when he decided to go on this adventure. Also, do you remember Robocop? That's a real thing in 2090, although people don't trust the security of these armed droids, and don't trust the people behind the making of it. It is a strange feeling; Ricardo stands here in the distant future where things he can only dream about exist. Now he could choose to [1]stay here in this amazing new world or [2]return to his original time in order to be with his family. Maybe Ricardo could even do [3]both, stay in the future for a while then return afterwards) choice=int(input("\nEnter choice by typi2ng the number in square brackets (each chioce shall lead to a diferent ending)")) From 245303f9426261346a7104dcdbba6a32f9efc4dd Mon Sep 17 00:00:00 2001 From: Rueshelle Ferguson Date: Fri, 2 Oct 2020 10:47:47 +0100 Subject: [PATCH 14/30] finished --- StoryD7.py | 11 ++++++++--- __pycache__/story.cpython-37.pyc | Bin 6050 -> 6303 bytes 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/StoryD7.py b/StoryD7.py index 17a338a..eb877a4 100644 --- a/StoryD7.py +++ b/StoryD7.py @@ -1,4 +1,6 @@ import story +import os +import msvcrt as m # the logic for the sotry... # help function to display more informating about links in the story @@ -6,13 +8,16 @@ import story # get user input # clear the screen - +def clear(): + print('\nPress enter to continue') + m.getch() + os.system('cls') # main def main(): print(story.chairStory) - print(story.) + print(story.context) selectContect = (input('Please select A,B,C,D...')) if selectContect == 'a': print(story.screen) @@ -22,6 +27,7 @@ def main(): print(story.sept) else: pass + clear() print(story.decision) a = int(input('Please select 1 or 2...')) if a == 1: @@ -32,6 +38,5 @@ def main(): print(story.con) - main() diff --git a/__pycache__/story.cpython-37.pyc b/__pycache__/story.cpython-37.pyc index f39f71a911436529b5ce8592f66300b5ac6d4de4..5a51ca475fed1a5bdae1f93fbf618410aaac55ed 100644 GIT binary patch delta 346 zcmZWlu}Z^G6ixA|&5JEqrPbnaHwhG^qm$UGIO&jp;Gm?*jd_^7E684vhwIl9XuJi2Q zx6f{0IsCzd@-%{ia!AD`f+mQCjDT_tfh;mo2tvlBvOo)x5RASRpcr(55L24cM97OB zUcRla-|e~pzTv%4A5_c`m;dAwF&*otjgt1uT?FE#tv`vlcgNozlWSwdOfeNdP0m|f$r*{6MZqQc zMU_!(#mPmfsd-UcC7HRYAw`L0sX0-TnI&{MS27f_1I;O7pX?~%AtC@|vT(9+ut>4+ NurRVPv#_!V0|2 Date: Fri, 2 Oct 2020 10:47:51 +0100 Subject: [PATCH 15/30] .. --- StoryD7.py | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/StoryD7.py b/StoryD7.py index 071a26b..dd7420c 100644 --- a/StoryD7.py +++ b/StoryD7.py @@ -1,13 +1,7 @@ next=False while next==False: #ensures the correct option leads to the next section - print(""" - \nAfter he uses the time machine for the second time, - he arrives in New York in the 21st century. He saw so many things different, at the start he was excited because it was everything new and they have so many things to learn. In the 21st century, the technology is massive they have self-driving cars, pervasive smartphones, hoverboards, household robots that clean, cook and practically can do everything and he wants to learn how things do what they do. He was a little bit lost at the beginning, but he was willing to learn everything, so he starts working at a bar to learn their language and their costumes. One year later he starts to learn more about the technology around him and he starts to understand how machines do what they do. He reaches a point when he is working at a big technology company in New York, he bought a new house a good car but he was not satisfied. It felt like something was missing but he doesn’t know why... Maybe he already learnd everything he wanted at the 21st century. - - When Ricardo realized that a time travel with the time machine requires a real variety of resources he noticed that the several travells he made had already drained its batteries and it needs recharging, but plutonium (the main source of energy) is not so easy to find in the present period. After some thinking Ricardo came up with two ideas for completing his plan to travel in time and space. While the [1]first idea he had was great and would probably worked well he chose the [2]second idea - - He starts to create his technology and try to improve the time machine so he can go wherever he wants and the time he wants. [3]twenty years have passed...""") + print("""\nAfter he uses the time machine for the second time,he arrives in New York in the 21st century. He saw so many things different, at the start he was excited because it was everything new and they have so many things to learn. In the 21st century, the technology is massive they have self-driving cars, pervasive smartphones, hoverboards, household robots that clean, cook and practically can do everything and he wants to learn how things do what they do. He was a little bit lost at the beginning, but he was willing to learn everything, so he starts working at a bar to learn their language and their costumes. One year later he starts to learn more about the technology around him and he starts to understand how machines do what they do. He reaches a point when he is working at a big technology company in New York, he bought a new house a good car but he was not satisfied. It felt like something was missing but he doesn’t know why... Maybe he already learnd everything he wanted at the 21st century.\n\nWhen Ricardo realized that a time travel with the time machine requires a real variety of resources he noticed that the several travells he made had already drained its batteries and it needs recharging, but plutonium (the main source of energy) is not so easy to find in the present period. After some thinking Ricardo came up with two ideas for completing his plan to travel in time and space. While the [1]first idea he had was great and would probably worked well he chose the [2]second idea.\n\nHe starts to create his technology and try to improve the time machine so he can go wherever he wants and the time he wants. [3]twenty years have passed...""") #main paragraph choice=int(input("\nEnter choice by typing the number in square brackets")) @@ -23,17 +17,17 @@ while next==False: elif choice==3: next=True - print("""\nHe still hasn’t found a way to fix the machine, he travels to Tokyo to meet a friend who can try to help him, when he arrives in Tokyo he saw that technology was superior to new York and he thought “how will Tokyo be in 2090?”.\nFive years later he finds a way to fix the time machine and he started preparing to travel to Tokyo 2090.\nRicardo landed in Tokyo, 2090. From being a technological powerhouse at the start of the 21st century, Tokyo is now the largest and most dominant capital globally, thanks to their investment in the science area. Everything is very accessible and developed, both economically and infrastructurally. From the road markings to the gigantic billboards present in every uber, the streets are full of LEDs everywhere, even more than before! Some people dislike it and say it's ugly and visual pollution, while others love it and find it fascinating.\nHe decided to take in the views of the city whilst he was there""") + print("""\nHe still hasn’t found a way to fix the machine, he travels to Tokyo to meet a friend who can try to help him, when he arrives in Tokyo he saw that technology was superior to new York and he thought “how will Tokyo be in 2090?”.\n\nFive years later he finds a way to fix the time machine and he started preparing to travel to Tokyo 2090.\n\nRicardo landed in Tokyo, 2090. From being a technological powerhouse at the start of the 21st century, Tokyo is now the largest and most dominant capital globally, thanks to their investment in the science area. Everything is very accessible and developed, both economically and infrastructurally. From the road markings to the gigantic billboards present in every uber, the streets are full of LEDs everywhere, even more than before! Some people dislike it and say it's ugly and visual pollution, while others love it and find it fascinating.\n\nHe decided to take in the views of the city whilst he was there""") else: - print("\nPlease ensure that a valid number is entered ") + print("\nPlease ensure the exact word is used(including case)") #makes sure choice is valid ###----ENDING----### next=False while next==False: - print("\nJapan had changed so much since the start of the 21st century.\nJapan is now fully autonomous. There is no need to work anymore. Doctors have been replaced by medical robots present in your own home, programmers were replaced by computers that feed themselves lines of code. Every essential worker has been replaced by robots.\nRicardo is shocked. He could have never seen such a significant development since he was still in the 17th century when he decided to go on this adventure. Also, do you remember Robocop? That's a real thing in 2090, although people don't trust the security of these armed droids, and don't trust the people behind the making of it. It is a strange feeling; Ricardo stands here in the distant future where things he can only dream about exist. Now he could choose to [1]stay here in this amazing new world or [2]return to his original time in order to be with his family. Maybe Ricardo could even do [3]both, stay in the future for a while then return afterwards) + print("""\nJapan had changed so much since the start of the 21st century.\nJapan is now fully autonomous. There is no need to work anymore. Doctors have been replaced by medical robots present in your own home, programmers were replaced by computers that feed themselves lines of code. Every essential worker has been replaced by robots.\nRicardo is shocked. He could have never seen such a significant development since he was still in the 17th century when he decided to go on this adventure. Also, do you remember Robocop? That's a real thing in 2090, although people don't trust the security of these armed droids, and don't trust the people behind the making of it. It is a strange feeling; Ricardo stands here in the distant future where things he can only dream about exist. Now he could choose to [1]stay here in this amazing new world or [2]return to his original time in order to be with his family. Maybe Ricardo could even do [3]both, stay in the future for a while then return afterwards""") - choice=int(input("\nEnter choice by typi2ng the number in square brackets (each chioce shall lead to a diferent ending)")) + choice=int(input("\nEnter choice by typing the number in square brackets (each chioce shall lead to a diferent ending)")) if choice== 1: next=True @@ -48,7 +42,7 @@ while next==False: print("\nHe decided to first gain some money and knowledge in Japan. This not only allows Ricardo to be able to use this back in the present it will also make him the smartest in his time period. Finally, after several months, he decides to go back to his home and check how things were over there. When he got to his island, everything was the same, except his family wasn't there.") else: - print("\nPlease ensure that a valid number is entered ") + print("\nPlease ensure that a valid number is entered exact word is used(including case)") print("""\nThank you for playing ___THE END___""") From a6f05508b66950d38d6190939092dd01325c29d6 Mon Sep 17 00:00:00 2001 From: "Rueshelle Ferguson (fergusonr)" Date: Fri, 2 Oct 2020 10:59:49 +0100 Subject: [PATCH 16/30] Update StoryD7.py --- StoryD7.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/StoryD7.py b/StoryD7.py index 3de6449..93d8669 100644 --- a/StoryD7.py +++ b/StoryD7.py @@ -1,4 +1,4 @@ -main() + ======= def dansStory(): @@ -123,6 +123,7 @@ def main(): print(story.back) print(story.decision2) print(story.con) +main() From 567c85141a511447db901ce2261ce667a0009320 Mon Sep 17 00:00:00 2001 From: "Joel Utoware (utowarej)" Date: Fri, 2 Oct 2020 11:01:52 +0100 Subject: [PATCH 17/30] Update StoryD7.py --- StoryD7.py | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/StoryD7.py b/StoryD7.py index 93d8669..3279143 100644 --- a/StoryD7.py +++ b/StoryD7.py @@ -125,6 +125,30 @@ def main(): print(story.con) main() +# joel +next=False +while next==False: + #ensures the correct option leads to the next section + print("""\nAfter he uses the time machine for the second time,he arrives in New York in the 21st century. He saw so many things different, at the start he was excited because it was everything new and they have so many things to learn. In the 21st century, the technology is massive they have self-driving cars, pervasive smartphones, hoverboards, household robots that clean, cook and practically can do everything and he wants to learn how things do what they do. He was a little bit lost at the beginning, but he was willing to learn everything, so he starts working at a bar to learn their language and their costumes. One year later he starts to learn more about the technology around him and he starts to understand how machines do what they do. He reaches a point when he is working at a big technology company in New York, he bought a new house a good car but he was not satisfied. It felt like something was missing but he doesn’t know why... Maybe he already learnd everything he wanted at the 21st century.\n\nWhen Ricardo realized that a time travel with the time machine requires a real variety of resources he noticed that the several travells he made had already drained its batteries and it needs recharging, but plutonium (the main source of energy) is not so easy to find in the present period. After some thinking Ricardo came up with two ideas for completing his plan to travel in time and space. While the [1]first idea he had was great and would probably worked well he chose the [2]second idea.\n\nHe starts to create his technology and try to improve the time machine so he can go wherever he wants and the time he wants. [3]twenty years have passed...""") + #main paragraph + + choice=int(input("\nEnter choice by typing the number in square brackets")) + #allows user to input choices + if choice==1: + print("""\nHe can become a famous scientist and gain the trust of researchers to get plutonium. + + -Returning to previous page-""") + + elif choice==2: + print("""\nHe can continue to develop the project and modify the time machine and further steal the plutonium. + -Returning to previous page-""") + + elif choice==3: + next=True + print("""\nHe still hasn’t found a way to fix the machine, he travels to Tokyo to meet a friend who can try to help him, when he arrives in Tokyo he saw that technology was superior to new York and he thought “how will Tokyo be in 2090?”.\n\nFive years later he finds a way to fix the time machine and he started preparing to travel to Tokyo 2090.\n\nRicardo landed in Tokyo, 2090. From being a technological powerhouse at the start of the 21st century, Tokyo is now the largest and most dominant capital globally, thanks to their investment in the science area. Everything is very accessible and developed, both economically and infrastructurally. From the road markings to the gigantic billboards present in every uber, the streets are full of LEDs everywhere, even more than before! Some people dislike it and say it's ugly and visual pollution, while others love it and find it fascinating.\n\nHe decided to take in the views of the city whilst he was there""") + else: + print("\nPlease ensure the exact word is used(including case)") + #makes sure choice is valid From 87b67778cc413a69dd95a28b3ece614b75fce3e5 Mon Sep 17 00:00:00 2001 From: "Mateusz Staszek (staszekm)" Date: Fri, 2 Oct 2020 11:03:45 +0100 Subject: [PATCH 18/30] Update StoryD7.py --- StoryD7.py | 60 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) diff --git a/StoryD7.py b/StoryD7.py index 3279143..3ddcc00 100644 --- a/StoryD7.py +++ b/StoryD7.py @@ -149,6 +149,66 @@ while next==False: else: print("\nPlease ensure the exact word is used(including case)") #makes sure choice is valid + + + + #mateuszs code + # Put story into here +#Mateusz code +def views(): + places = ['palace[1]','science museum[2]','art museum[3]','temple[4]','park[5]'] + while len(places) != 0: + print('\nThere are so many sights and scenery in Tokyo so theres so much to see and do.') + print('\nplease choose a number') + print('\n%s' % places) + go_to = input('\ngo to: ') + if go_to == '1': + print('\nThe Imperial Palace was his best bet to see what had changed. Crossing the Seimon Ishibashi bridge, he found the Emperor of Japan welcoming guests into his hall. There must’ve been a party; why not go and relax after all the hard work?') + proceed = input('\ngo and relax at the party[1], Go see more sights[2] ') + print(proceed) + if proceed == '1' and 'palace[1]' in places : + print('\nRicardo went inside and saw the beautiful golden interior. It must’ve been redesigned – robots raced across the floors to deliver food to esteemed guests, dragons would fly across the room and refill glasses and cup. It was fascinating.') + places.remove('palace[1]') + elif go_to == '2' and 'science museum[2]' in places: + print('\nHe decided to visit the National Museum of Nature and Science and compare his notes to the historian’s views on the ancient world. There were hundreds of artifacts and trinkets and so far, the historians and had got most of it bang on.') + places.remove('science museum[2]') + elif go_to == '3' and 'art museum[3]' in places: + print('\nThe National Museum of Western Art was going to be very weird and wonderful. Comparing 1950s New York to the items on display in this museum would be fun to see. Over 100 years worth of knowledge was stored in these display cabinets. He saw the newspaper he had read the day he first used the time machine. He was impressed by the way Japan had developed so fast; collecting all these old items whilst simultaneously expanding on their technological front.') + places.remove('art museum[3]') + elif go_to == '4' and 'temple[4]' in places: + print('\nSensō-ji Temple was a masterpiece and also Tokyo’s most famous shrine. The Asakusa district was famous for its various festivals such as the Sanja Matsuri.') + proceed = input('\ngo to the festival[1], go see more sights[2]: ') + if proceed == '1': + print('\nThe festival was beautiful: lights shining everywhere, traditional dancing and music from as far as the eye could see.') + places.remove('temple[4]') + elif go_to == '5' and 'park[5]' in places: + print('\nHe travelled to Ueno Park and zoo. The greenery was astoundingly serene, covering the whole park. The zoo was filled with animals from all around the globe including polar bears, African elephants and camels.') + places.remove('park[5]') +views() + + + + + + + + + + + + + + + + + + + + + + + + From 51d83fe2d0aee4bf9546aa81d02ef82f899bf4e1 Mon Sep 17 00:00:00 2001 From: "Joel Utoware (utowarej)" Date: Fri, 2 Oct 2020 11:05:01 +0100 Subject: [PATCH 19/30] Update StoryD7.py --- StoryD7.py | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/StoryD7.py b/StoryD7.py index 3ddcc00..6b5189d 100644 --- a/StoryD7.py +++ b/StoryD7.py @@ -187,7 +187,30 @@ def views(): views() +###----ENDING----joel### +next=False +while next==False: + + print("""\nJapan had changed so much since the start of the 21st century.\nJapan is now fully autonomous. There is no need to work anymore. Doctors have been replaced by medical robots present in your own home, programmers were replaced by computers that feed themselves lines of code. Every essential worker has been replaced by robots.\nRicardo is shocked. He could have never seen such a significant development since he was still in the 17th century when he decided to go on this adventure. Also, do you remember Robocop? That's a real thing in 2090, although people don't trust the security of these armed droids, and don't trust the people behind the making of it. It is a strange feeling; Ricardo stands here in the distant future where things he can only dream about exist. Now he could choose to [1]stay here in this amazing new world or [2]return to his original time in order to be with his family. Maybe Ricardo could even do [3]both, stay in the future for a while then return afterwards""") + + choice=int(input("\nEnter choice by typing the number in square brackets (each chioce shall lead to a diferent ending)")) + + if choice== 1: + next=True + print("\nAfter thinking long and hard about the decision Ricardo decided to start a brand new life in Japan. He had manged to get a simple job of doing maintenance on robots. It was surprisingly easy for him to get the job as the only thing he had to do was ask each robot a series of questions. Now he is living a good life with new technology and money, the only thing missing is that there is nothing to fill the void in his heart where his family would be.") + elif choice== 2: + next=True + print("\nWithout hesitation Ricardo returns home, to his amazement it seems no time has passed since his departure. Thanks to this he does not need to explain what happened if it had even happened at all.") + + elif choice== 3: + next=True + print("\nHe decided to first gain some money and knowledge in Japan. This not only allows Ricardo to be able to use this back in the present it will also make him the smartest in his time period. Finally, after several months, he decides to go back to his home and check how things were over there. When he got to his island, everything was the same, except his family wasn't there.") + + else: + print("\nPlease ensure that a valid number is entered exact word is used(including case)") +print("""\nThank you for playing +___THE END___""") From 8db15e5a18b0c6fa679a96f54d7a76853ca544dc Mon Sep 17 00:00:00 2001 From: Rueshelle Ferguson Date: Fri, 2 Oct 2020 11:07:42 +0100 Subject: [PATCH 20/30] dont need --- StoryD7.py | 6 ------ story.py | 9 ++------- 2 files changed, 2 insertions(+), 13 deletions(-) diff --git a/StoryD7.py b/StoryD7.py index eb877a4..8d532c9 100644 --- a/StoryD7.py +++ b/StoryD7.py @@ -1,11 +1,6 @@ import story import os import msvcrt as m -# the logic for the sotry... - -# help function to display more informating about links in the story - -# get user input # clear the screen def clear(): @@ -13,7 +8,6 @@ def clear(): m.getch() os.system('cls') - # main def main(): print(story.chairStory) diff --git a/story.py b/story.py index fa7995f..35f0cd0 100644 --- a/story.py +++ b/story.py @@ -33,7 +33,7 @@ chairStory = ''' ''' #links to other pages -# black holographic screen - screen + # black holographic screen - screen screen =''' A holographic screen is a two dimensional display technology that uses coated glass media for the projection surface of a video projector. @@ -96,7 +96,6 @@ leave = ''' Enjoy a luxurious life years to come. Evolve and live better and advanced life without family. Always having the guilt of leaving the family in other era.''' - # conclusion con = ''' @@ -115,13 +114,9 @@ con = ''' He then travells again... ''' - - context = ''' would you like to find out anymore information about any of the following? A) The Screen B) Time Travel c) 19th Of September D) Continue With The Choice - ''' - - + ''' \ No newline at end of file From 0708a39e2d2c0e3858d78ad985a0b4fe9f0d424e Mon Sep 17 00:00:00 2001 From: "Joel Utoware (utowarej)" Date: Fri, 9 Oct 2020 09:05:03 +0100 Subject: [PATCH 21/30] Update StoryD7.py --- StoryD7.py | 169 +++++++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 164 insertions(+), 5 deletions(-) diff --git a/StoryD7.py b/StoryD7.py index dd7420c..8c268db 100644 --- a/StoryD7.py +++ b/StoryD7.py @@ -1,3 +1,128 @@ +def dansStory(): + listOfYes =["Yes", "yes", "Yes please", "yes please", "Yeah", "yeah"] + playerName = input("Hello, what is your name? ") + Ans1 = input("Welcome " + playerName + " would you like to take take part in our story? ") + if Ans1 in listOfYes: + print("Thank you, enjoy!") + else: + print("Sorry to hear that, goodbye") + exit() + print("In the seventh century, in a distant place from popular civilization there was a man named Ricardo.") + Ans2 = input("Would you like to know more about Ricardo? ") + if Ans2 in listOfYes: + print("") + print("Ricardo was a very respectful man for his kindness with other people and his authority when something was getting serious. He was a family man with 3 little brothers and would never do something that would hurt them.") + print("Continuing the story...") + + else: + print("Continuing the story...") + print("He was the leader of a small island that was surrounded by others in a big ocean basin") + print("Having the same routines day after day he was getting tired of it so he decided to challenge himself and leave the island to make a new discovery") + print("Something new that nobody had discovered before") + print("He had two directions to go to. It was a decision between North and South") + print("") + Ans3 = input("Would you like to know more about the 2 routes ahead? ") + if Ans3 in listOfYes: + Ans4 = input(" Please select an option on what you wish to know about: 1) North, 2) South, 3) North and South ") + if Ans4 == "1": + print("") + print("North wasn´t the easiest path for him but it wasn't impossible either.") + print("This wasy he was sure he would face difficulties and his brothers would have to deal with a lot more difficulties. It would be more adventurous and challenging.") + print("Continuing the story...") + elif Ans4 == "2": + print("") + print("South was a bit easier but it had some difficulties coming with it as well.") + print("It wasn´t going to be as simple as living his normal day to day life but some stories he had heard and maps made by previous attempts would help him a lot having a safer trip.") + print("Continuing the story...") + elif Ans4 == "3": + print("") + print("North wasn´t the easiest path for him but it wasn't impossible either.") + print("This wasy he was sure he would face difficulties and his brothers would have to deal with a lot more difficulties. It would be more adventurous and challenging.") + print("South was a bit easier but it had some difficulties coming with it as well.") + print("It wasn´t going to be as simple as living his normal day to day life but some stories he had heard and maps made by previous attempts would help him a lot having a safer trip.") + print("Continuing the story...") + else: + print("Continuing the story...") + else: + print("Continuing the story...") + print("") + print("He took his time, thought about it and one day he finally decided to go ") + print("1) Calm and easy (South)" + " or " + "2) Adventurous and hard (North)") + Ans5 = input("So what path do you choose? ") + print("and talk to his wife Ana...") + if Ans5 == "1": + print("") + print("Ana, I know you don't like me leaving and going on adventures but I gave a lot of thought into it and I know I am able to do this and bring something home that would make you proud. I´ll be leaving next week and my brothers will come with me... We'll be going to South" + "South? I don't know what do you expect to discover Ricardo, I hope you're sure about this..." + "I believe that there is something on this planet that no one found yet and with this journey I would be able to go down is history over the years. Please trust me Ana!" + "Ok, my dear, take care of yourself and your brothers and may God be with you.") + elif Ans5 == "2": + print("") + print("Ana, I know you don't like me leaving and going on adventures but I gave a lot of thought into it and I know I am able to do this and bring something home that would make you proud. I´ll be leaving next week and my brothers will come with me... We'll be going to North" + "North? I don't know what do you expect to discover Ricardo, I hope you're sure about this..." + "I believe that there is something on this planet that no one found yet and with this journey I would be able to go down is history over the years. Please trust me Ana!" + "Ok, my dear, take care of yourself and your brothers and may God be with you.") + else: + print("Continuing the story...") + print("") + print("After the talk...") + print("He ordered the workers of the island to build in a working week a boat that could carry at most four people and some supplies for the trip.") + print("After the boat was finished, they started the journey of their lifetime which they expected to be the best one. In the middle of the ocean,") + print("when it was getting dark, a storm was coming towards them.") + print("") + print("My fellow brothers don't panic! Everything will be fine! Paul turn the sail to the left!") + print("But Ricardo, we don't stand a chance of what's coming! This will be messed up in many ways.") + print("") + print("Eventually, the storm appeared over them and the boat was collapsing due to strong waves of the ocean.") + print("At that moment he could see his brothers struggling but he felt helpless... He had a difficult choice to make.") + Ans6 = input("Are you going to 'risk your life to save your brother', or 'stay where you are and keep holding onto safety'") + print("") + print("After the decision...") +dansStory() + +# gigs starts + +import story +import os +import msvcrt as m +# the logic for the sotry... + +# help function to display more informating about links in the story + +# get user input + +# clear the screen +def clear(): + print('\nPress enter to continue') + m.getch() + os.system('cls') + + +# main +def main(): + print(story.chairStory) + print(story.context) + selectContect = (input('Please select A,B,C,D...')) + if selectContect == 'a': + print(story.screen) + elif selectContect == 'b': + print(story.timeTravel) + elif selectContect == 'c': + print(story.sept) + else: + pass + clear() + print(story.decision) + a = int(input('Please select 1 or 2...')) + if a == 1: + print(story.leave) + elif a == 2: + print(story.back) + print(story.decision2) + print(story.con) +main() + +# joel next=False while next==False: #ensures the correct option leads to the next section @@ -21,7 +146,45 @@ while next==False: else: print("\nPlease ensure the exact word is used(including case)") #makes sure choice is valid -###----ENDING----### + + + + #mateuszs code + # Put story into here +#Mateusz code +def views(): + places = ['palace[1]','science museum[2]','art museum[3]','temple[4]','park[5]'] + while len(places) != 0: + print('\nThere are so many sights and scenery in Tokyo so theres so much to see and do.') + print('\nplease choose a number') + print('\n%s' % places) + go_to = input('\ngo to: ') + if go_to == '1': + print('\nThe Imperial Palace was his best bet to see what had changed. Crossing the Seimon Ishibashi bridge, he found the Emperor of Japan welcoming guests into his hall. There must’ve been a party; why not go and relax after all the hard work?') + proceed = input('\ngo and relax at the party[1], Go see more sights[2] ') + print(proceed) + if proceed == '1' and 'palace[1]' in places : + print('\nRicardo went inside and saw the beautiful golden interior. It must’ve been redesigned – robots raced across the floors to deliver food to esteemed guests, dragons would fly across the room and refill glasses and cup. It was fascinating.') + places.remove('palace[1]') + elif go_to == '2' and 'science museum[2]' in places: + print('\nHe decided to visit the National Museum of Nature and Science and compare his notes to the historian’s views on the ancient world. There were hundreds of artifacts and trinkets and so far, the historians and had got most of it bang on.') + places.remove('science museum[2]') + elif go_to == '3' and 'art museum[3]' in places: + print('\nThe National Museum of Western Art was going to be very weird and wonderful. Comparing 1950s New York to the items on display in this museum would be fun to see. Over 100 years worth of knowledge was stored in these display cabinets. He saw the newspaper he had read the day he first used the time machine. He was impressed by the way Japan had developed so fast; collecting all these old items whilst simultaneously expanding on their technological front.') + places.remove('art museum[3]') + elif go_to == '4' and 'temple[4]' in places: + print('\nSensō-ji Temple was a masterpiece and also Tokyo’s most famous shrine. The Asakusa district was famous for its various festivals such as the Sanja Matsuri.') + proceed = input('\ngo to the festival[1], go see more sights[2]: ') + if proceed == '1': + print('\nThe festival was beautiful: lights shining everywhere, traditional dancing and music from as far as the eye could see.') + places.remove('temple[4]') + elif go_to == '5' and 'park[5]' in places: + print('\nHe travelled to Ueno Park and zoo. The greenery was astoundingly serene, covering the whole park. The zoo was filled with animals from all around the globe including polar bears, African elephants and camels.') + places.remove('park[5]') +views() + + +###----ENDING----joel### next=False while next==False: @@ -44,8 +207,4 @@ while next==False: else: print("\nPlease ensure that a valid number is entered exact word is used(including case)") print("""\nThank you for playing - ___THE END___""") - - - From b860afa8a2fb0a680fa16e7e26a734b1d149ecbd Mon Sep 17 00:00:00 2001 From: Joel Utoware Date: Fri, 9 Oct 2020 09:33:57 +0100 Subject: [PATCH 22/30] . --- StoryD7.py | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/StoryD7.py b/StoryD7.py index 8c268db..b277723 100644 --- a/StoryD7.py +++ b/StoryD7.py @@ -1,14 +1,16 @@ +======= + def dansStory(): listOfYes =["Yes", "yes", "Yes please", "yes please", "Yeah", "yeah"] playerName = input("Hello, what is your name? ") - Ans1 = input("Welcome " + playerName + " would you like to take take part in our story? ") + Ans1 = input("Welcome " + playerName + " would you like to take take part in our story? (yes/no)") if Ans1 in listOfYes: print("Thank you, enjoy!") else: print("Sorry to hear that, goodbye") exit() print("In the seventh century, in a distant place from popular civilization there was a man named Ricardo.") - Ans2 = input("Would you like to know more about Ricardo? ") + Ans2 = input("Would you like to know more about Ricardo?(yes/no) ") if Ans2 in listOfYes: print("") print("Ricardo was a very respectful man for his kindness with other people and his authority when something was getting serious. He was a family man with 3 little brothers and would never do something that would hurt them.") @@ -21,9 +23,9 @@ def dansStory(): print("Something new that nobody had discovered before") print("He had two directions to go to. It was a decision between North and South") print("") - Ans3 = input("Would you like to know more about the 2 routes ahead? ") + Ans3 = input("Would you like to know more about the 2 routes ahead? (yes/no) ") if Ans3 in listOfYes: - Ans4 = input(" Please select an option on what you wish to know about: 1) North, 2) South, 3) North and South ") + Ans4 = input(""" Please select an option on what you wish to know about: \n1) North \n2) South, \n3) North and South """) if Ans4 == "1": print("") print("North wasn´t the easiest path for him but it wasn't impossible either.") @@ -47,7 +49,7 @@ def dansStory(): print("Continuing the story...") print("") print("He took his time, thought about it and one day he finally decided to go ") - print("1) Calm and easy (South)" + " or " + "2) Adventurous and hard (North)") + print(""""1) Calm and easy (South) \n 2) Adventurous and hard (North)""") Ans5 = input("So what path do you choose? ") print("and talk to his wife Ana...") if Ans5 == "1": @@ -75,7 +77,7 @@ def dansStory(): print("") print("Eventually, the storm appeared over them and the boat was collapsing due to strong waves of the ocean.") print("At that moment he could see his brothers struggling but he felt helpless... He had a difficult choice to make.") - Ans6 = input("Are you going to 'risk your life to save your brother', or 'stay where you are and keep holding onto safety'") + Ans6 = input("""Are you going to\n 1)'risk your life to save your brother'\n'stay where you are and keep holding onto safety'""") print("") print("After the decision...") dansStory() @@ -129,7 +131,7 @@ while next==False: print("""\nAfter he uses the time machine for the second time,he arrives in New York in the 21st century. He saw so many things different, at the start he was excited because it was everything new and they have so many things to learn. In the 21st century, the technology is massive they have self-driving cars, pervasive smartphones, hoverboards, household robots that clean, cook and practically can do everything and he wants to learn how things do what they do. He was a little bit lost at the beginning, but he was willing to learn everything, so he starts working at a bar to learn their language and their costumes. One year later he starts to learn more about the technology around him and he starts to understand how machines do what they do. He reaches a point when he is working at a big technology company in New York, he bought a new house a good car but he was not satisfied. It felt like something was missing but he doesn’t know why... Maybe he already learnd everything he wanted at the 21st century.\n\nWhen Ricardo realized that a time travel with the time machine requires a real variety of resources he noticed that the several travells he made had already drained its batteries and it needs recharging, but plutonium (the main source of energy) is not so easy to find in the present period. After some thinking Ricardo came up with two ideas for completing his plan to travel in time and space. While the [1]first idea he had was great and would probably worked well he chose the [2]second idea.\n\nHe starts to create his technology and try to improve the time machine so he can go wherever he wants and the time he wants. [3]twenty years have passed...""") #main paragraph - choice=int(input("\nEnter choice by typing the number in square brackets")) + choice=int(input("\nWhat would you like to know ? \n1)The first idea 2)The second idea\n 3)or move on with story")) #allows user to input choices if choice==1: print("""\nHe can become a famous scientist and gain the trust of researchers to get plutonium. @@ -144,7 +146,7 @@ while next==False: next=True print("""\nHe still hasn’t found a way to fix the machine, he travels to Tokyo to meet a friend who can try to help him, when he arrives in Tokyo he saw that technology was superior to new York and he thought “how will Tokyo be in 2090?”.\n\nFive years later he finds a way to fix the time machine and he started preparing to travel to Tokyo 2090.\n\nRicardo landed in Tokyo, 2090. From being a technological powerhouse at the start of the 21st century, Tokyo is now the largest and most dominant capital globally, thanks to their investment in the science area. Everything is very accessible and developed, both economically and infrastructurally. From the road markings to the gigantic billboards present in every uber, the streets are full of LEDs everywhere, even more than before! Some people dislike it and say it's ugly and visual pollution, while others love it and find it fascinating.\n\nHe decided to take in the views of the city whilst he was there""") else: - print("\nPlease ensure the exact word is used(including case)") + print("\nPlease ensure the correct number is entered.") #makes sure choice is valid @@ -190,7 +192,7 @@ while next==False: print("""\nJapan had changed so much since the start of the 21st century.\nJapan is now fully autonomous. There is no need to work anymore. Doctors have been replaced by medical robots present in your own home, programmers were replaced by computers that feed themselves lines of code. Every essential worker has been replaced by robots.\nRicardo is shocked. He could have never seen such a significant development since he was still in the 17th century when he decided to go on this adventure. Also, do you remember Robocop? That's a real thing in 2090, although people don't trust the security of these armed droids, and don't trust the people behind the making of it. It is a strange feeling; Ricardo stands here in the distant future where things he can only dream about exist. Now he could choose to [1]stay here in this amazing new world or [2]return to his original time in order to be with his family. Maybe Ricardo could even do [3]both, stay in the future for a while then return afterwards""") - choice=int(input("\nEnter choice by typing the number in square brackets (each chioce shall lead to a diferent ending)")) + choice=int(input("\nWhat will he do?(each chioce shall lead to a diferent ending)\n 1)Stay in Japan 2)Return home(his original time)\n3)Stay in the furure for some time then return home")) if choice== 1: next=True From b6d0ef343531c7501250de60fd7bee46511788c1 Mon Sep 17 00:00:00 2001 From: giggzze Date: Fri, 9 Oct 2020 09:34:45 +0100 Subject: [PATCH 23/30] pulled master --- StoryD7.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/StoryD7.py b/StoryD7.py index 9382312..078c3f4 100644 --- a/StoryD7.py +++ b/StoryD7.py @@ -1,6 +1,3 @@ - -======= - def dansStory(): listOfYes =["Yes", "yes", "Yes please", "yes please", "Yeah", "yeah"] playerName = input("Hello, what is your name? ") From bfc88d27ba78a47cdc905cfa21c29dacd5417c77 Mon Sep 17 00:00:00 2001 From: giggzze Date: Fri, 9 Oct 2020 09:56:32 +0100 Subject: [PATCH 24/30] giggs choice fixed --- StoryD7.py | 22 ++++++++++++++-------- __pycache__/story.cpython-38.pyc | Bin 6057 -> 6301 bytes 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/StoryD7.py b/StoryD7.py index 078c3f4..4a2e018 100644 --- a/StoryD7.py +++ b/StoryD7.py @@ -78,7 +78,7 @@ def dansStory(): Ans6 = input("Are you going to 'risk your life to save your brother', or 'stay where you are and keep holding onto safety'") print("") print("After the decision...") -dansStory() +#dansStory() # gigs starts @@ -105,13 +105,19 @@ def main(): print(story.sept) else: pass - clear() - print(story.decision) - a = int(input('Please select 1 or 2...')) - if a == 1: - print(story.leave) - elif a == 2: - print(story.back) + isNumber = False + while isNumber == False: + try: + clear() + print(story.decision) + a = int(input('Please select 1 or 2...')) + if a == 1: + print(story.leave) + elif a == 2: + print(story.back) + isNumber = True + except ValueError: + pass print(story.decision2) print(story.con) main() diff --git a/__pycache__/story.cpython-38.pyc b/__pycache__/story.cpython-38.pyc index e42dddf904b11bc32df8715c0ea811bd3b49d588..7bff86dfeccbc10cd8336366e405dd197a697e7f 100644 GIT binary patch delta 407 zcmZWl!Ab)$5Z%(X+LVH*AbOgclnPRBp0uraRAgI(g6K9o>xS+olFeG{rQaa+;=vE- zQT>}-z4{3~IMpr`e2`@3y~(^urU!40dbe6-4&mc$eAC=@oUeJZi~=Pmw9@_O`W_3) zy>h@jr&f8tooy6eKd(1miXklU^v&`xKZh!d0~o0cVlhB43PK?RP?-T=juNF2gbbBV zd?SQK}QRXfHtvN3egpT$fF#b0OC%tiG zBDe^_!+V2CA2nS+CBChs5i&!#5>znn-j0;uxYXpl#w_EJ-xJz1N{?(Q{T;wEL#BV8 y)=jCgT?>$llpbTtd30#qzRw4CB}N*~7CDKlv>ALfQ%6_mdv#@Ux!o<6-1Q&#J9Z=h delta 188 zcmbPhxKdv`l$V!_0SI#B%Hr)L85kaeILLqr$Z-JTVuOj=>U^o3scg-Rj0`E9!3>&Q z8)N Date: Fri, 9 Oct 2020 10:00:20 +0100 Subject: [PATCH 25/30] . --- StoryD7.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/StoryD7.py b/StoryD7.py index b277723..2922fc2 100644 --- a/StoryD7.py +++ b/StoryD7.py @@ -187,7 +187,7 @@ views() ###----ENDING----joel### -next=False +next= False while next==False: print("""\nJapan had changed so much since the start of the 21st century.\nJapan is now fully autonomous. There is no need to work anymore. Doctors have been replaced by medical robots present in your own home, programmers were replaced by computers that feed themselves lines of code. Every essential worker has been replaced by robots.\nRicardo is shocked. He could have never seen such a significant development since he was still in the 17th century when he decided to go on this adventure. Also, do you remember Robocop? That's a real thing in 2090, although people don't trust the security of these armed droids, and don't trust the people behind the making of it. It is a strange feeling; Ricardo stands here in the distant future where things he can only dream about exist. Now he could choose to [1]stay here in this amazing new world or [2]return to his original time in order to be with his family. Maybe Ricardo could even do [3]both, stay in the future for a while then return afterwards""") From 19d3b44c2142ae73b09a5acac8066f9d6b46f361 Mon Sep 17 00:00:00 2001 From: Joel Utoware Date: Fri, 9 Oct 2020 10:07:49 +0100 Subject: [PATCH 26/30] . --- StoryD7.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/StoryD7.py b/StoryD7.py index 2922fc2..95cdb04 100644 --- a/StoryD7.py +++ b/StoryD7.py @@ -1,5 +1,3 @@ -======= - def dansStory(): listOfYes =["Yes", "yes", "Yes please", "yes please", "Yeah", "yeah"] playerName = input("Hello, what is your name? ") From 7dc3133afb92cb870896dfce04fb505d86ced388 Mon Sep 17 00:00:00 2001 From: Joel Utoware Date: Fri, 9 Oct 2020 10:11:26 +0100 Subject: [PATCH 27/30] . --- StoryD7.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/StoryD7.py b/StoryD7.py index 95cdb04..624310c 100644 --- a/StoryD7.py +++ b/StoryD7.py @@ -23,7 +23,7 @@ def dansStory(): print("") Ans3 = input("Would you like to know more about the 2 routes ahead? (yes/no) ") if Ans3 in listOfYes: - Ans4 = input(""" Please select an option on what you wish to know about: \n1) North \n2) South, \n3) North and South """) + Ans4 = input(""" Please select an option on what you wish to know about: \n1) North \n2) South, \n3) North and South\n """) if Ans4 == "1": print("") print("North wasn´t the easiest path for him but it wasn't impossible either.") @@ -47,8 +47,8 @@ def dansStory(): print("Continuing the story...") print("") print("He took his time, thought about it and one day he finally decided to go ") - print(""""1) Calm and easy (South) \n 2) Adventurous and hard (North)""") - Ans5 = input("So what path do you choose? ") + print("""1) Calm and easy (South) \n 2) Adventurous and hard (North)""") + Ans5 = input("So what path do you choose?\n ") print("and talk to his wife Ana...") if Ans5 == "1": print("") @@ -75,7 +75,7 @@ def dansStory(): print("") print("Eventually, the storm appeared over them and the boat was collapsing due to strong waves of the ocean.") print("At that moment he could see his brothers struggling but he felt helpless... He had a difficult choice to make.") - Ans6 = input("""Are you going to\n 1)'risk your life to save your brother'\n'stay where you are and keep holding onto safety'""") + Ans6 = input("""Are you going to\n 1)'risk your life to save your brother'\n2)'stay where you are and keep holding onto safety'""") print("") print("After the decision...") dansStory() From 6e95eea0692649abf65a7e4e5715c40d53a90da8 Mon Sep 17 00:00:00 2001 From: Joel Utoware Date: Fri, 9 Oct 2020 10:15:40 +0100 Subject: [PATCH 28/30] . --- StoryD7.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/StoryD7.py b/StoryD7.py index 624310c..e9a9ba5 100644 --- a/StoryD7.py +++ b/StoryD7.py @@ -47,7 +47,7 @@ def dansStory(): print("Continuing the story...") print("") print("He took his time, thought about it and one day he finally decided to go ") - print("""1) Calm and easy (South) \n 2) Adventurous and hard (North)""") + print("""1) Calm and easy (South) \n2) Adventurous and hard (North)""") Ans5 = input("So what path do you choose?\n ") print("and talk to his wife Ana...") if Ans5 == "1": @@ -75,7 +75,7 @@ def dansStory(): print("") print("Eventually, the storm appeared over them and the boat was collapsing due to strong waves of the ocean.") print("At that moment he could see his brothers struggling but he felt helpless... He had a difficult choice to make.") - Ans6 = input("""Are you going to\n 1)'risk your life to save your brother'\n2)'stay where you are and keep holding onto safety'""") + Ans6 = input("""Are you going to\n1)'risk your life to save your brother'\n2)'stay where you are and keep holding onto safety'\n""") print("") print("After the decision...") dansStory() @@ -129,7 +129,7 @@ while next==False: print("""\nAfter he uses the time machine for the second time,he arrives in New York in the 21st century. He saw so many things different, at the start he was excited because it was everything new and they have so many things to learn. In the 21st century, the technology is massive they have self-driving cars, pervasive smartphones, hoverboards, household robots that clean, cook and practically can do everything and he wants to learn how things do what they do. He was a little bit lost at the beginning, but he was willing to learn everything, so he starts working at a bar to learn their language and their costumes. One year later he starts to learn more about the technology around him and he starts to understand how machines do what they do. He reaches a point when he is working at a big technology company in New York, he bought a new house a good car but he was not satisfied. It felt like something was missing but he doesn’t know why... Maybe he already learnd everything he wanted at the 21st century.\n\nWhen Ricardo realized that a time travel with the time machine requires a real variety of resources he noticed that the several travells he made had already drained its batteries and it needs recharging, but plutonium (the main source of energy) is not so easy to find in the present period. After some thinking Ricardo came up with two ideas for completing his plan to travel in time and space. While the [1]first idea he had was great and would probably worked well he chose the [2]second idea.\n\nHe starts to create his technology and try to improve the time machine so he can go wherever he wants and the time he wants. [3]twenty years have passed...""") #main paragraph - choice=int(input("\nWhat would you like to know ? \n1)The first idea 2)The second idea\n 3)or move on with story")) + choice=int(input("\nWhat would you like to know ? \n1)The first idea 2)The second idea\n3)or move on with story")) #allows user to input choices if choice==1: print("""\nHe can become a famous scientist and gain the trust of researchers to get plutonium. @@ -190,7 +190,7 @@ while next==False: print("""\nJapan had changed so much since the start of the 21st century.\nJapan is now fully autonomous. There is no need to work anymore. Doctors have been replaced by medical robots present in your own home, programmers were replaced by computers that feed themselves lines of code. Every essential worker has been replaced by robots.\nRicardo is shocked. He could have never seen such a significant development since he was still in the 17th century when he decided to go on this adventure. Also, do you remember Robocop? That's a real thing in 2090, although people don't trust the security of these armed droids, and don't trust the people behind the making of it. It is a strange feeling; Ricardo stands here in the distant future where things he can only dream about exist. Now he could choose to [1]stay here in this amazing new world or [2]return to his original time in order to be with his family. Maybe Ricardo could even do [3]both, stay in the future for a while then return afterwards""") - choice=int(input("\nWhat will he do?(each chioce shall lead to a diferent ending)\n 1)Stay in Japan 2)Return home(his original time)\n3)Stay in the furure for some time then return home")) + choice=int(input("\nWhat will he do?(each chioce shall lead to a diferent ending)\n1)Stay in Japan 2)Return home(his original time)\n3)Stay in the furure for some time then return home")) if choice== 1: next=True From b3a73392f77b521e4b90942a1241228aeff15f7c Mon Sep 17 00:00:00 2001 From: giggzze Date: Fri, 9 Oct 2020 10:21:55 +0100 Subject: [PATCH 29/30] finished --- StoryD7.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/StoryD7.py b/StoryD7.py index 4a2e018..173ff13 100644 --- a/StoryD7.py +++ b/StoryD7.py @@ -120,7 +120,7 @@ def main(): pass print(story.decision2) print(story.con) -main() +#main() # joel next=False @@ -147,8 +147,6 @@ while next==False: print("\nPlease ensure the exact word is used(including case)") #makes sure choice is valid - - #mateuszs code # Put story into here #Mateusz code @@ -181,7 +179,7 @@ def views(): elif go_to == '5' and 'park[5]' in places: print('\nHe travelled to Ueno Park and zoo. The greenery was astoundingly serene, covering the whole park. The zoo was filled with animals from all around the globe including polar bears, African elephants and camels.') places.remove('park[5]') -views() +#views() ###----ENDING----joel### From 3fc9e421d15ebe7c823a3fa0c6b426c160a0c35e Mon Sep 17 00:00:00 2001 From: "Daniel Sherrington (sherrind)" Date: Fri, 9 Oct 2020 11:08:42 +0100 Subject: [PATCH 30/30] Finshed one func --- StoryD7.py | 110 ++++++++++++------------------- __pycache__/story.cpython-37.pyc | Bin 6303 -> 6302 bytes 2 files changed, 43 insertions(+), 67 deletions(-) diff --git a/StoryD7.py b/StoryD7.py index 6b5189d..4b6b192 100644 --- a/StoryD7.py +++ b/StoryD7.py @@ -1,7 +1,13 @@ +import story +import os +import msvcrt as m +# clear the screen +def clear(): + print('\nPress enter to continue') + m.getch() + os.system('cls') -======= - -def dansStory(): +def mainStory(): listOfYes =["Yes", "yes", "Yes please", "yes please", "Yeah", "yeah"] playerName = input("Hello, what is your name? ") Ans1 = input("Welcome " + playerName + " would you like to take take part in our story? ") @@ -81,28 +87,7 @@ def dansStory(): Ans6 = input("Are you going to 'risk your life to save your brother', or 'stay where you are and keep holding onto safety'") print("") print("After the decision...") -dansStory() - -# gigs starts - -import story -import os -import msvcrt as m -# the logic for the sotry... - -# help function to display more informating about links in the story - -# get user input - -# clear the screen -def clear(): - print('\nPress enter to continue') - m.getch() - os.system('cls') - - -# main -def main(): +#Giggs print(story.chairStory) print(story.context) selectContect = (input('Please select A,B,C,D...')) @@ -123,39 +108,31 @@ def main(): print(story.back) print(story.decision2) print(story.con) -main() - # joel -next=False -while next==False: + next=False + while next==False: #ensures the correct option leads to the next section - print("""\nAfter he uses the time machine for the second time,he arrives in New York in the 21st century. He saw so many things different, at the start he was excited because it was everything new and they have so many things to learn. In the 21st century, the technology is massive they have self-driving cars, pervasive smartphones, hoverboards, household robots that clean, cook and practically can do everything and he wants to learn how things do what they do. He was a little bit lost at the beginning, but he was willing to learn everything, so he starts working at a bar to learn their language and their costumes. One year later he starts to learn more about the technology around him and he starts to understand how machines do what they do. He reaches a point when he is working at a big technology company in New York, he bought a new house a good car but he was not satisfied. It felt like something was missing but he doesn’t know why... Maybe he already learnd everything he wanted at the 21st century.\n\nWhen Ricardo realized that a time travel with the time machine requires a real variety of resources he noticed that the several travells he made had already drained its batteries and it needs recharging, but plutonium (the main source of energy) is not so easy to find in the present period. After some thinking Ricardo came up with two ideas for completing his plan to travel in time and space. While the [1]first idea he had was great and would probably worked well he chose the [2]second idea.\n\nHe starts to create his technology and try to improve the time machine so he can go wherever he wants and the time he wants. [3]twenty years have passed...""") + print("""\nAfter he uses the time machine for the second time,he arrives in New York in the 21st century. He saw so many things different, at the start he was excited because it was everything new and they have so many things to learn. In the 21st century, the technology is massive they have self-driving cars, pervasive smartphones, hoverboards, household robots that clean, cook and practically can do everything and he wants to learn how things do what they do. He was a little bit lost at the beginning, but he was willing to learn everything, so he starts working at a bar to learn their language and their costumes. One year later he starts to learn more about the technology around him and he starts to understand how machines do what they do. He reaches a point when he is working at a big technology company in New York, he bought a new house a good car but he was not satisfied. It felt like something was missing but he doesn’t know why... Maybe he already learnd everything he wanted at the 21st century.\n\nWhen Ricardo realized that a time travel with the time machine requires a real variety of resources he noticed that the several travells he made had already drained its batteries and it needs recharging, but plutonium (the main source of energy) is not so easy to find in the present period. After some thinking Ricardo came up with two ideas for completing his plan to travel in time and space. While the [1]first idea he had was great and would probably worked well he chose the [2]second idea.\n\nHe starts to create his technology and try to improve the time machine so he can go wherever he wants and the time he wants. [3]twenty years have passed...""") #main paragraph - choice=int(input("\nEnter choice by typing the number in square brackets")) + choice=int(input("\nEnter choice by typing the number in square brackets")) #allows user to input choices - if choice==1: - print("""\nHe can become a famous scientist and gain the trust of researchers to get plutonium. + if choice==1: + print("""\nHe can become a famous scientist and gain the trust of researchers to get plutonium. -Returning to previous page-""") - elif choice==2: - print("""\nHe can continue to develop the project and modify the time machine and further steal the plutonium. + elif choice==2: + print("""\nHe can continue to develop the project and modify the time machine and further steal the plutonium. -Returning to previous page-""") - elif choice==3: - next=True - print("""\nHe still hasn’t found a way to fix the machine, he travels to Tokyo to meet a friend who can try to help him, when he arrives in Tokyo he saw that technology was superior to new York and he thought “how will Tokyo be in 2090?”.\n\nFive years later he finds a way to fix the time machine and he started preparing to travel to Tokyo 2090.\n\nRicardo landed in Tokyo, 2090. From being a technological powerhouse at the start of the 21st century, Tokyo is now the largest and most dominant capital globally, thanks to their investment in the science area. Everything is very accessible and developed, both economically and infrastructurally. From the road markings to the gigantic billboards present in every uber, the streets are full of LEDs everywhere, even more than before! Some people dislike it and say it's ugly and visual pollution, while others love it and find it fascinating.\n\nHe decided to take in the views of the city whilst he was there""") - else: - print("\nPlease ensure the exact word is used(including case)") - #makes sure choice is valid - - - - #mateuszs code - # Put story into here + elif choice==3: + next=True + print("""\nHe still hasn’t found a way to fix the machine, he travels to Tokyo to meet a friend who can try to help him, when he arrives in Tokyo he saw that technology was superior to new York and he thought “how will Tokyo be in 2090?”.\n\nFive years later he finds a way to fix the time machine and he started preparing to travel to Tokyo 2090.\n\nRicardo landed in Tokyo, 2090. From being a technological powerhouse at the start of the 21st century, Tokyo is now the largest and most dominant capital globally, thanks to their investment in the science area. Everything is very accessible and developed, both economically and infrastructurally. From the road markings to the gigantic billboards present in every uber, the streets are full of LEDs everywhere, even more than before! Some people dislike it and say it's ugly and visual pollution, while others love it and find it fascinating.\n\nHe decided to take in the views of the city whilst he was there""") + else: + print("\nPlease ensure the exact word is used(including case)") + #makes sure choice is valid #Mateusz code -def views(): places = ['palace[1]','science museum[2]','art museum[3]','temple[4]','park[5]'] while len(places) != 0: print('\nThere are so many sights and scenery in Tokyo so theres so much to see and do.') @@ -184,33 +161,32 @@ def views(): elif go_to == '5' and 'park[5]' in places: print('\nHe travelled to Ueno Park and zoo. The greenery was astoundingly serene, covering the whole park. The zoo was filled with animals from all around the globe including polar bears, African elephants and camels.') places.remove('park[5]') -views() - - ###----ENDING----joel### -next=False -while next==False: + next=False + while next==False: - print("""\nJapan had changed so much since the start of the 21st century.\nJapan is now fully autonomous. There is no need to work anymore. Doctors have been replaced by medical robots present in your own home, programmers were replaced by computers that feed themselves lines of code. Every essential worker has been replaced by robots.\nRicardo is shocked. He could have never seen such a significant development since he was still in the 17th century when he decided to go on this adventure. Also, do you remember Robocop? That's a real thing in 2090, although people don't trust the security of these armed droids, and don't trust the people behind the making of it. It is a strange feeling; Ricardo stands here in the distant future where things he can only dream about exist. Now he could choose to [1]stay here in this amazing new world or [2]return to his original time in order to be with his family. Maybe Ricardo could even do [3]both, stay in the future for a while then return afterwards""") + print("""\nJapan had changed so much since the start of the 21st century.\nJapan is now fully autonomous. There is no need to work anymore. Doctors have been replaced by medical robots present in your own home, programmers were replaced by computers that feed themselves lines of code. Every essential worker has been replaced by robots.\nRicardo is shocked. He could have never seen such a significant development since he was still in the 17th century when he decided to go on this adventure. Also, do you remember Robocop? That's a real thing in 2090, although people don't trust the security of these armed droids, and don't trust the people behind the making of it. It is a strange feeling; Ricardo stands here in the distant future where things he can only dream about exist. Now he could choose to [1]stay here in this amazing new world or [2]return to his original time in order to be with his family. Maybe Ricardo could even do [3]both, stay in the future for a while then return afterwards""") - choice=int(input("\nEnter choice by typing the number in square brackets (each chioce shall lead to a diferent ending)")) + choice=int(input("\nEnter choice by typing the number in square brackets (each chioce shall lead to a diferent ending)")) - if choice== 1: - next=True - print("\nAfter thinking long and hard about the decision Ricardo decided to start a brand new life in Japan. He had manged to get a simple job of doing maintenance on robots. It was surprisingly easy for him to get the job as the only thing he had to do was ask each robot a series of questions. Now he is living a good life with new technology and money, the only thing missing is that there is nothing to fill the void in his heart where his family would be.") + if choice== 1: + next=True + print("\nAfter thinking long and hard about the decision Ricardo decided to start a brand new life in Japan. He had manged to get a simple job of doing maintenance on robots. It was surprisingly easy for him to get the job as the only thing he had to do was ask each robot a series of questions. Now he is living a good life with new technology and money, the only thing missing is that there is nothing to fill the void in his heart where his family would be.") - elif choice== 2: - next=True - print("\nWithout hesitation Ricardo returns home, to his amazement it seems no time has passed since his departure. Thanks to this he does not need to explain what happened if it had even happened at all.") + elif choice== 2: + next=True + print("\nWithout hesitation Ricardo returns home, to his amazement it seems no time has passed since his departure. Thanks to this he does not need to explain what happened if it had even happened at all.") - elif choice== 3: - next=True - print("\nHe decided to first gain some money and knowledge in Japan. This not only allows Ricardo to be able to use this back in the present it will also make him the smartest in his time period. Finally, after several months, he decides to go back to his home and check how things were over there. When he got to his island, everything was the same, except his family wasn't there.") + elif choice== 3: + next=True + print("\nHe decided to first gain some money and knowledge in Japan. This not only allows Ricardo to be able to use this back in the present it will also make him the smartest in his time period. Finally, after several months, he decides to go back to his home and check how things were over there. When he got to his island, everything was the same, except his family wasn't there.") - else: - print("\nPlease ensure that a valid number is entered exact word is used(including case)") -print("""\nThank you for playing -___THE END___""") + else: + print("\nPlease ensure that a valid number is entered exact word is used(including case)") + print("""\nThank you for playing + ___THE END___""") +mainStory() + diff --git a/__pycache__/story.cpython-37.pyc b/__pycache__/story.cpython-37.pyc index 5a51ca475fed1a5bdae1f93fbf618410aaac55ed..f7a1f82c7dbe2bf7d6d788065b7f6c4a37bf68a6 100644 GIT binary patch delta 43 xcmbPlIM0yViIIla^YPURs==S2Q_X!W{q{n+_8I