From e701a9388c8939c9ce91731bb32f8404340180ef Mon Sep 17 00:00:00 2001 From: Kleopatra Angelidi Date: Wed, 24 Apr 2013 05:17:06 +0300 Subject: improved new lines! Woah! --- weatbag/tiles/n1w1.py | 10 +++++----- weatbag/tiles/n2w1.py | 36 ++++++++++++++++++------------------ weatbag/tiles/n2w2.py | 2 +- weatbag/tiles/n2w3.py | 6 +++--- weatbag/tiles/n2w4.py | 20 ++++++++++---------- weatbag/tiles/n2w5.py | 12 ++++++------ weatbag/tiles/n3w1.py | 12 ++++++------ weatbag/tiles/n3w2.py | 20 ++++++++++---------- weatbag/tiles/n3w3.py | 14 +++++++------- weatbag/tiles/n3w4.py | 6 +++--- 10 files changed, 69 insertions(+), 69 deletions(-) diff --git a/weatbag/tiles/n1w1.py b/weatbag/tiles/n1w1.py index 3a455cf..502caa9 100644 --- a/weatbag/tiles/n1w1.py +++ b/weatbag/tiles/n1w1.py @@ -1,18 +1,18 @@ class Tile: def describe(self): - print("\nThere is a small island northwest.\n" + print("There is a small island northwest.\n" "Unfortunatelly, you can't swim because the sea is full of " "electric eels so you need a transport to go there.\n" "Luckilly to the north you see 2 children with a raft sitting " - "under a tree." ) + "under a tree.\n" ) def action(self, player, do): - pass + print("Waitwat?!") def leave(self, player, direction): if direction == "w": - print ("\nYou can't go there by swimming, that part is full of " - "electric eels.") + print ("You can't go there by swimming, that part is full of " + "electric eels.\n") return False else: return True diff --git a/weatbag/tiles/n2w1.py b/weatbag/tiles/n2w1.py index 434f760..cf325b1 100644 --- a/weatbag/tiles/n2w1.py +++ b/weatbag/tiles/n2w1.py @@ -14,7 +14,7 @@ class Tile: print("\nThey take you to the western island!") def challenge(self): - print("\nYou ask them to give it to you." + print("You ask them to give it to you." "The little boy laughs and replies: \n" "So you think you are brave enough to go to that island? " "Very well, but we cannot give you our raft. " @@ -26,43 +26,43 @@ class Tile: "It takes double the time for my sister.\n" "If we combine our powers, " "how many minutes will it take to transfer you on the island?\n" - "To make a guess, type a number followed by 'minutes'.") + "To make a guess, type a number followed by 'minutes'.\n") def action(self, player, do): if self.challenge_not_completed: try: if do[1] == "minutes": if do[0] == self.minutes: - print("\nYour guess have pleased me and my sister! " + print("Your guess have pleased me and my sister! " "\nLet's go!") - print("\nThe brother and sister will take you to the " - "island.") + print("The brother and sister will take you to the " + "island.\n") self.challenge_not_completed = False else: - print("\nWe're afraid this is not the correct answer. " - "\nTry another one.") + print("We're afraid this is not the correct answer. " + "Try another one.\n") elif (do[0] in words.take) and (do[1] == "sister" or do[1] == "girl"): - print("\nYou little bastard, leave my sister down!\n" + print("You bastard! Leave my sister down!\n" "What kind of an asshole are you? Taking advantage of " - "little children?\nWe will transfer you for free.") - print("\nThe brother and sister take you to the island!") + "little children?\nWe will transfer you for free.\n") + print("The brother and sister take you to the island!\n") self.challenge_not_completed = False elif (do[0] in words.take) and (do[1] == "brother" or do[1] == "boy"): - print("\nYou bastard, take me down!" - "\nWe will transfer you for free!") - print("\nThe brother and sister take you to the island!") + print("You bastard, take me down!\n" + "We will transfer you for free!\n") + print("The brother and sister take you to the island!\n") self.challenge_not_completed = False elif (do[0] in words.take) and self.challenge_not_completed: - print("\nI told you we won't give you our raft, " - "you have to guess the correct amount of time!") + print("I told you we won't give you our raft, " + "you have to guess the correct amount of time!\n") except: - print("\nPlease try guessing a number, like '42 minutes'.") + print("Please try guessing a number, like '42 minutes'\n.") def leave(self, player, direction): if direction == "w" and self.challenge_not_completed: - print ("\nYou can't go there by swimming, that part is full of " - "electric eels.") + print ("You can't go there by swimming, that part is full of " + "electric eels.\n") return False else: return True diff --git a/weatbag/tiles/n2w2.py b/weatbag/tiles/n2w2.py index f390994..abd7f75 100644 --- a/weatbag/tiles/n2w2.py +++ b/weatbag/tiles/n2w2.py @@ -4,7 +4,7 @@ class Tile: "and a small path.\nFeeling adventurous?\n") def action(self, player, do): - print("Sorry, I don't understand") + print("Sorry, wat?!") def leave(self, player, direction): if direction == "e": diff --git a/weatbag/tiles/n2w3.py b/weatbag/tiles/n2w3.py index 6c82f13..e0ce3b3 100644 --- a/weatbag/tiles/n2w3.py +++ b/weatbag/tiles/n2w3.py @@ -1,15 +1,15 @@ class Tile: def describe(self): - print("\nYou are walking through the trees. It looks like the path you " + print("You are walking through the trees. It looks like the path you " "took leads to a small wooden hut.\nYou saw a tree fall and it didn't " "make any sound and WOW... that was weired because you were there and " - "observed it!") + "observed it!\n") # "If a tree falls in a forest and no one is around to hear it, # does it make a sound?" is a philosophical thought experiment that # raises questions regarding observation and knowledge of reality. def action(self, player, do): - print("\nSorry, I don't understand") + print("Wat?!") def leave(self, player, direction): if direction == "s": diff --git a/weatbag/tiles/n2w4.py b/weatbag/tiles/n2w4.py index 2e917ea..f4309b5 100644 --- a/weatbag/tiles/n2w4.py +++ b/weatbag/tiles/n2w4.py @@ -7,35 +7,35 @@ class Tile: def describe(self): if self.opendoor: - print("\nThe hut's door is open and the kitties are playing with " - "their momcat!") + print("The hut's door is open and the kitties are playing with " + "their momcat!\n") else: - print("\nYou are standing in front of the hut's door. The hut " + print("You are standing in front of the hut's door. The hut " "looks very small and you wonder who could live there...\n" "It has a door but you can't open it because the doorknob " - "is missing.") + "is missing.\n") def action(self, player, do): if (do[0] in words.use) and do[1]=='doorknob': if player.has('doorknob'): player.take('doorknob') - print("\nDoorknob fits fine, clicks and voila... Door is open!\n" + print("Doorknob fits fine, clicks and voila... Door is open!\n" "\nYou are in a cozy living room with a cat and 5 kittens" - " resting on a couch.\nThere is another room at west.") + " resting on a couch.\nThere is another room at west.\n") self.opendoor = True else: - print("\nYou'll need a doorknob to open the door.") + print("You'll need a doorknob to open the door.\n") self.opendoor = False else: - print("\nSorry, I don't understand.") + print("Sorry, I don't understand.\n") def leave(self, player, direction): if direction == 'w' and not self.opendoor: - print("\nFirst you need to enter the hut.") + print("First you need to enter the hut.\n") return False elif direction == 's': print("Meeeeh, nothing of importance is going on there, try " - "another direction.") + "another direction.\n") return False else: return True diff --git a/weatbag/tiles/n2w5.py b/weatbag/tiles/n2w5.py index 7277343..85ed1ff 100644 --- a/weatbag/tiles/n2w5.py +++ b/weatbag/tiles/n2w5.py @@ -7,26 +7,26 @@ class Tile: def describe(self): if self.contents['catfood']: - print("\nYou look around and you see a shelf with catfood cans.\n" + print("You look around and you see a shelf with catfood cans.\n" "I don't know about you, but a catfood can is always handy!\n" - "Never know when you'll need to feed a kitty!") + "Never know when you'll need to feed a kitty!\n") def action(self, player, do): if (do[0] in words.take) and ('catfood' in do): self.take_catfood(player) self.contents['catfood'] -= 1 else: - print("Sorry, I don't understand.") + print("Sorry, I don't understand.\n") def take_catfood(self, player): if transfer('catfood', self.contents, player.inventory, n=2): - print("\nYou did wise. You took the catfood!") + print("You did wise. You took the catfood!\n") else: - print("\nThere is nothing here.") + print("There is nothing here.\n") def leave(self, player, direction): if direction == 'w'or direction == 's' or direction == 'n': - print("Area 51. No trespassing beyond this point.") + print("Area 51. No trespassing beyond this point.\n") return False else: return True diff --git a/weatbag/tiles/n3w1.py b/weatbag/tiles/n3w1.py index 43986e3..a5e05b9 100644 --- a/weatbag/tiles/n3w1.py +++ b/weatbag/tiles/n3w1.py @@ -1,18 +1,18 @@ class Tile: def describe(self): - print("\nThe beach is quiet. On the south are children playing.") + print("The beach is quiet. On the south are children playing.\n") def action(self, player, do): - print("\nSorry, I don't understand") + print("wo0t w0ot?! o_O") def leave(self, player, direction): if direction == 'w': - print("\nI'm afraid you can't go west.\nThe sea on that part is " - "fool of electric eels and you don't have a transport.") + print("I'm afraid you can't go west.\nThe sea on that part is " + "fool of electric eels and you don't have a transport.\n") return False elif direction == 'e': - print("\nThere is the side of a cave in front of you.\nYou can't go " - "east.") + print("There is the side of a cave in front of you.\nYou can't go " + "east.\n") return False elif direction == 'n': print(" , , \n" diff --git a/weatbag/tiles/n3w2.py b/weatbag/tiles/n3w2.py index 989cb6c..a5c46cd 100644 --- a/weatbag/tiles/n3w2.py +++ b/weatbag/tiles/n3w2.py @@ -7,16 +7,16 @@ class Tile: def describe(self): if not self.give_catfood: - print("\nYou are at the beach and there is an old man with an " + print("You are at the beach and there is an old man with an " "enormous beard that is getting his little boat ready to go " "across to the mainland.\nNaturally, you are asking him to " "take you in his boat.\nThe old man replies:\nOf course I " "can take you with me, my dear adventurer but first I need " "some catfood so I can feed the kitties across in the " - "mainland!") + "mainland!\n") else: - print("\nThere's the old fisherman with his boat, he can take you " - "across if you like!") + print("There's the old fisherman with his boat, he can take you " + "across if you like!\n") # I only added words.use because player might # use the word "use" insteed of "give". @@ -28,20 +28,20 @@ class Tile: if self.give_catfood == False: player.take('catfood') self.give_catfood = True - print("\nGreat! Now we can sail!") + print("Great! Now we can sail!\n") else: player.take('catfood') - print("\nOh how nice of you. You are the best!") + print("Oh how nice of you. You are the best!\n") elif len(do) > 1: - print("\nI have no use for that.") + print("I have no use for that.\n") else: - print("\nSorry, I don't understand.") + print("Sorry, I don't understand.\n") def leave(self, player, direction): if direction == 'e'and not self.give_catfood: - print("\nYou can't swim, remember the electric eels? You need a " - "transport to go across.") + print("You can't swim, remember the electric eels? You need a " + "transport to go across.\n") return False if direction == 'n': print("Nothing to do there.\n") diff --git a/weatbag/tiles/n3w3.py b/weatbag/tiles/n3w3.py index 8ccf76f..f325428 100644 --- a/weatbag/tiles/n3w3.py +++ b/weatbag/tiles/n3w3.py @@ -7,23 +7,23 @@ class Tile: def describe(self): if self.contents['doorknob']: - print("\nAs you walk through the path you find something shiny on " - "the ground beside some rocks.\nIt looks like a brass doorknob.") + print("As you walk through the path you find something shiny on " + "the ground beside some rocks.\nIt looks like a brass doorknob.\n") else: - print("\nThere is nothing to do here, all you see is your path and " - "the trees around!") + print("There is nothing to do here, all you see is your path and " + "the trees around!\n") def action(self, player, do): if (do[0] in words.take) and ('doorknob' in do): self.take_doorknob(player) else: - print("\nSorry, I don't understand.") + print("Sorry, I don't understand.\n") def take_doorknob(self, player): if transfer('doorknob', self.contents, player.inventory): - print("\nYou pick up the doorknob.") + print("You pick up the doorknob.\n") else: - print("\nThere is nothing here.") + print("There is nothing here.\n") def leave(self, player, direction): if direction == "n": diff --git a/weatbag/tiles/n3w4.py b/weatbag/tiles/n3w4.py index 2388ee3..39b8b35 100644 --- a/weatbag/tiles/n3w4.py +++ b/weatbag/tiles/n3w4.py @@ -1,12 +1,12 @@ class Tile: def describe(self): - print("\nLooks like you are in a walking mood because you still follow " + print("Looks like you are in a walking mood because you still follow " "the path.\nYou hear birds singing, some small waves on the background, " "there is a nice flowery smell, rays of sun make the tree sceenery " - "heavenly...\nI totaly get you, it's a nice path to have a walk!") + "heavenly...\nI totaly get you, it's a nice path to have a walk!\n") def action(self, player, do): - print("\nSorry, I don't understand") + print("Sorry, I don't understand.\n") def leave(self, player, direction): if direction == "n": -- cgit v1.3