From 0b50529598e8563e49c9c09c11c3e29c2d8b4622 Mon Sep 17 00:00:00 2001 From: giggzze Date: Thu, 1 Oct 2020 14:34:05 +0100 Subject: [PATCH 1/5] 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 7d96b0ebd43a1573513bb7cfd360920ccaa6ab65 Mon Sep 17 00:00:00 2001 From: giggzze Date: Fri, 2 Oct 2020 09:27:08 +0100 Subject: [PATCH 2/5] 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 zcmZ{o-)g^euYT-#1H2a+bAWSzOMZzu)=JIrGIUuk7#er~2jT zH}C&^XXiiqaQV+meE2>8(h)z(o$*e2WqhT4Y5Y=ob$qql9q*Rc#@EX0hYm8kioQC>XJ zE8oma)7379E}0c)ld(-{s!-V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{=~D|dOHen zc1xdbolijDXaf56<&OvX(KoLjcP^E7b@S}sLz8abH0D#MrE*p>|X=R9yH$uHKD3|t_v3C1+69P%ORu|1Y~3$oQ8^ME4CFV(e$C-rq4M7 z8o={=Dv8jcHYa1)weD9-V8_OguYDBI8M}3cE}%Vsxb{O`kuyS1wZp*Sj1R~Wx<`6X2eqdcl9GJivh|JS+@ERxyR3!|-+I(+uFrR zFnx$M%zklWtb-QnIgEN+U8%pE!+${5hPb}4!MF2GG&4L8`ld|q=$ou2$e`r6b%lF9=J5*SCmhe{uQMn{;wc<3Jg$Ja+X!XAfP5n%;xW zd|TvOihgvKXAWR@{Y4M#sV6z|`Fdt!70r_?P(RC!Uq>!(riLB+VnWr)iJ#?ud2yYz zNgMM9E^uGiCsbZ*5$jj`_5DajNS`SsAKuyLW_85E8ai_nZRAb zWl^15gM8gwqwtvT*D7I&a!X1d zP0x-2_sJ7mKKsa}lQt}#(Ndp1WR_hVzWFQ{%4o6re(&8nlwIZC-_=F?Px-O?tKI$G 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 1de0dec00c354f2bee1e35b18dfd33a37230c93e Mon Sep 17 00:00:00 2001 From: Rueshelle Ferguson Date: Fri, 2 Oct 2020 10:28:01 +0100 Subject: [PATCH 3/5] 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 zcmZ{p%WfRU6^1E`k|{b~#VfB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ZbEL*{NEWxZ3jy9E$1CRFnBc_ttxyCODOM;iDh-iOt`PG|ra-PP4JX(3|%7M-v zx(qeF2dnuuOQ#h5=q%41!0!5k9@tY?QsmR|%*ra7Cr6-uni{_zIX{^icI@*BRZoun zH1*5#+{nzuGU)M-oEPY%?PhjBboCi9$F>8)`-!%LfNq#7kT8 z3M$A1?h-DG%G4U<>*^SV%iLe8geCGdDSeotNU`)M9PplcJ#@8w@}EKI`$=IDIw*m& zP%@FubVUnH5(((Of|qpAss_YRo$jcA$;7h|esU)I?8Ay2_u=Y8o;~PKzE_vcU0v7w zeV8mAyq9r5?Fo-BuHnXfnz+9LeH~+q&Ne0e-Yl@E41_$o{>tfgB8vmn=F!!D*FD;Wd73UfbN-e0}p*o0m2(Z(iB_HQz4(4{_0=!T Date: Fri, 2 Oct 2020 10:32:43 +0100 Subject: [PATCH 4/5] 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:47:47 +0100 Subject: [PATCH 5/5] 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