diff --git a/StoryD7.py b/StoryD7.py index e9a9ba5..fe7bf74 100644 --- a/StoryD7.py +++ b/StoryD7.py @@ -78,18 +78,13 @@ def dansStory(): 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() +#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(): @@ -97,7 +92,6 @@ def clear(): m.getch() os.system('cls') - # main def main(): print(story.chairStory) @@ -111,16 +105,22 @@ 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() +#main() # joel next=False @@ -147,8 +147,6 @@ while next==False: print("\nPlease ensure the correct number is entered.") #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### diff --git a/__pycache__/story.cpython-38.pyc b/__pycache__/story.cpython-38.pyc index e42dddf..7bff86d 100644 Binary files a/__pycache__/story.cpython-38.pyc and b/__pycache__/story.cpython-38.pyc differ 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