From 45e81ccdd430bd5e40e72c5a6d9661cac2820b48 Mon Sep 17 00:00:00 2001 From: Kleopatra Angelidi Date: Tue, 7 May 2013 19:11:17 +0300 Subject: added new tile n1w4 --- weatbag/tiles/n1w4.py | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 weatbag/tiles/n1w4.py (limited to 'weatbag/tiles/n1w4.py') diff --git a/weatbag/tiles/n1w4.py b/weatbag/tiles/n1w4.py new file mode 100644 index 0000000..13b288e --- /dev/null +++ b/weatbag/tiles/n1w4.py @@ -0,0 +1,28 @@ +class Tile: + def __init__(self): + self.challenge_completed = False + + def describe(self): + print("\n") + if not self.challenge_completed: + self.challenge() + else: + print("") + + def challenge(self): + print("\n") + pass + + def action(self, player, do): + if not self.challenge_completed: + pass + else: + print("I don't understand...") + + def leave(self, player, direction): + if direction == "s": + print ("Oh dear Basdet! You can't go north, you will fall of the " + "cliff!\n") + return False + else: + return True -- cgit v1.3 From c4b8a55485366711a97d23332b4b4e36f85d7198 Mon Sep 17 00:00:00 2001 From: Kleopatra Angelidi Date: Tue, 7 May 2013 19:17:38 +0300 Subject: added one more leave restriction --- weatbag/tiles/n1w4.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'weatbag/tiles/n1w4.py') diff --git a/weatbag/tiles/n1w4.py b/weatbag/tiles/n1w4.py index 13b288e..1fc522d 100644 --- a/weatbag/tiles/n1w4.py +++ b/weatbag/tiles/n1w4.py @@ -11,7 +11,7 @@ class Tile: def challenge(self): print("\n") - pass + pass def action(self, player, do): if not self.challenge_completed: @@ -21,8 +21,12 @@ class Tile: def leave(self, player, direction): if direction == "s": - print ("Oh dear Basdet! You can't go north, you will fall of the " + print("Oh dear Basdet! You can't go north, you will fall of the " "cliff!\n") return False + elif direction == "n": + print("It looks like the side of a wooden hut.\n" + "Since you don't walk though walls (yet) you can't go there.") + return False else: return True -- cgit v1.3 From 12d7f328327084039efb117906c8b66091b31c46 Mon Sep 17 00:00:00 2001 From: Kleopatra Angelidi Date: Tue, 7 May 2013 19:28:03 +0300 Subject: added describe --- weatbag/tiles/n1w4.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'weatbag/tiles/n1w4.py') diff --git a/weatbag/tiles/n1w4.py b/weatbag/tiles/n1w4.py index 1fc522d..5504a57 100644 --- a/weatbag/tiles/n1w4.py +++ b/weatbag/tiles/n1w4.py @@ -3,11 +3,13 @@ class Tile: self.challenge_completed = False def describe(self): - print("\n") + print("The rocks led you to a path uphill.\n*Poof* A purrr-sian cat " + "appears in front of you!\n") if not self.challenge_completed: self.challenge() else: - print("") + print("The rocks led you to a path uphill.\nIt's a little bit " + "windy and a flock of seagulls is flying above you.") def challenge(self): print("\n") -- cgit v1.3 From 40fc044a2d530b90c0c3133718ec725f3b87e4db Mon Sep 17 00:00:00 2001 From: Kleopatra Angelidi Date: Tue, 7 May 2013 19:43:49 +0300 Subject: added challenge description (n1w4) --- weatbag/tiles/n1w4.py | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) (limited to 'weatbag/tiles/n1w4.py') diff --git a/weatbag/tiles/n1w4.py b/weatbag/tiles/n1w4.py index 5504a57..dbe35eb 100644 --- a/weatbag/tiles/n1w4.py +++ b/weatbag/tiles/n1w4.py @@ -12,9 +12,25 @@ class Tile: "windy and a flock of seagulls is flying above you.") def challenge(self): - print("\n") - pass - + print("Meow good traveler! I have a question for you.\n" + "You might as well go away and ignore me and my awesome fur but " + "if you pass my little test I will reward you!\n\n" + "Here is a series of numbers.\n" + "What is the next number in the sequence?\n" + "1\n" + "11\n" + "21\n" + "1211\n" + "111221\n" + "312211\n" + "13112221\n") + #The next number in the sequence is 1113213211, because the rule for + #creating the next number is to simply describe the previous number. + #The first number is 1, or 1 (one) 1, so you get 11. + #To describe 11, you have two 1's, or 21. Now you have one 2 and one 1, + #so the next number is 1211. The solution is to simply continue describing + #the previous number using only numbers.\n") + def action(self, player, do): if not self.challenge_completed: pass -- cgit v1.3 From 20bae4715686b91b97dcf7fdb21d50ddd38312ed Mon Sep 17 00:00:00 2001 From: Kleopatra Angelidi Date: Tue, 7 May 2013 20:18:06 +0300 Subject: added action and an kitten item :3 (n1w4) --- weatbag/tiles/n1w4.py | 39 ++++++++++++++++++++++++++------------- 1 file changed, 26 insertions(+), 13 deletions(-) (limited to 'weatbag/tiles/n1w4.py') diff --git a/weatbag/tiles/n1w4.py b/weatbag/tiles/n1w4.py index dbe35eb..d3a9c2b 100644 --- a/weatbag/tiles/n1w4.py +++ b/weatbag/tiles/n1w4.py @@ -1,11 +1,15 @@ +from weatbag.utils import transfer + class Tile: def __init__(self): + self.contents = {'neko': 1} self.challenge_completed = False - - def describe(self): - print("The rocks led you to a path uphill.\n*Poof* A purrr-sian cat " - "appears in front of you!\n") + self.sequence = "1113213211" + + def describe(self): if not self.challenge_completed: + print("The rocks led you to a path uphill.\n*Poof* A purrr-sian " + "cat appears in front of you!\n") self.challenge() else: print("The rocks led you to a path uphill.\nIt's a little bit " @@ -23,17 +27,25 @@ class Tile: "1211\n" "111221\n" "312211\n" - "13112221\n") - #The next number in the sequence is 1113213211, because the rule for - #creating the next number is to simply describe the previous number. - #The first number is 1, or 1 (one) 1, so you get 11. - #To describe 11, you have two 1's, or 21. Now you have one 2 and one 1, - #so the next number is 1211. The solution is to simply continue describing - #the previous number using only numbers.\n") + "13112221\n") + #The next number in the sequence is 1113213211, because the rule for + #creating the next number is to simply describe the previous number. + #The first number is 1, or 1 (one) 1, so you get 11. + #To describe 11, you have two 1's, or 21. Now you have one 2 and one 1, + #so the next number is 1211. The solution is to simply continue + #describing the previous number using only numbers.\n") def action(self, player, do): if not self.challenge_completed: - pass + if do[0] == self.sequence: + print("You are a clever human, aren't you?!\n\n" + "Here is my offering. I give you this maneki-neko.\n" + "If you ever come across a wall of kittens and you want " + "them to let you pass you will use this lucky charm!") + #https://en.wikipedia.org/wiki/Maneki-neko + self.contents['neko'] -= 1 + player.give('neko') + self.challenge_completed = True else: print("I don't understand...") @@ -44,7 +56,8 @@ class Tile: return False elif direction == "n": print("It looks like the side of a wooden hut.\n" - "Since you don't walk though walls (yet) you can't go there.") + "Since you don't walk though walls (yet) " + "you can't go there.\n") return False else: return True -- cgit v1.3 From 3c5b891a716f942708109339944701cc03f957b5 Mon Sep 17 00:00:00 2001 From: Kleopatra Angelidi Date: Tue, 7 May 2013 20:27:24 +0300 Subject: added else inside action for when the player says something else except the solution of the riddle --- weatbag/tiles/n1w4.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'weatbag/tiles/n1w4.py') diff --git a/weatbag/tiles/n1w4.py b/weatbag/tiles/n1w4.py index d3a9c2b..984063e 100644 --- a/weatbag/tiles/n1w4.py +++ b/weatbag/tiles/n1w4.py @@ -34,7 +34,7 @@ class Tile: #To describe 11, you have two 1's, or 21. Now you have one 2 and one 1, #so the next number is 1211. The solution is to simply continue #describing the previous number using only numbers.\n") - + def action(self, player, do): if not self.challenge_completed: if do[0] == self.sequence: @@ -46,6 +46,8 @@ class Tile: self.contents['neko'] -= 1 player.give('neko') self.challenge_completed = True + else: + print("Wut? Try h4rd3r st00p3d hum4n!") else: print("I don't understand...") -- cgit v1.3 From b63dacba14d8a976e52771143d85f80c523ed416 Mon Sep 17 00:00:00 2001 From: Kleopatra Angelidi Date: Tue, 7 May 2013 20:44:38 +0300 Subject: grammar and orthography --- weatbag/tiles/n1w2.py | 2 +- weatbag/tiles/n1w3.py | 5 ++--- weatbag/tiles/n1w4.py | 2 +- 3 files changed, 4 insertions(+), 5 deletions(-) (limited to 'weatbag/tiles/n1w4.py') diff --git a/weatbag/tiles/n1w2.py b/weatbag/tiles/n1w2.py index 4dfa3cb..4d18ff4 100644 --- a/weatbag/tiles/n1w2.py +++ b/weatbag/tiles/n1w2.py @@ -18,7 +18,7 @@ class Tile: elif direction == "w": print("The sandy beach is transforming into big rocks but it looks " "like you are able to climb them.\n" - "Just be carefull because they are a bit slipery.") + "Just be careful because they are a bit slipery.") return True else: return True diff --git a/weatbag/tiles/n1w3.py b/weatbag/tiles/n1w3.py index 7aee7b4..081d41e 100644 --- a/weatbag/tiles/n1w3.py +++ b/weatbag/tiles/n1w3.py @@ -1,9 +1,7 @@ class Tile: def describe(self): - print("The sandy beach is transforming into big rocks but it looks " - "like you are able to climb them.\n" - "Just be carefull because they are a bit slipery.") + print("Woooah! Those rocks are full of lichens!\n") def action(self, player, do): print("Sorry, I don't speak giberish.\n") @@ -16,5 +14,6 @@ class Tile: elif direction == "n": print("The rocks are way to high for you. " "Unfortunatelly you cannot climb them.") + return False else: return True diff --git a/weatbag/tiles/n1w4.py b/weatbag/tiles/n1w4.py index 984063e..d9e9b74 100644 --- a/weatbag/tiles/n1w4.py +++ b/weatbag/tiles/n1w4.py @@ -53,7 +53,7 @@ class Tile: def leave(self, player, direction): if direction == "s": - print("Oh dear Basdet! You can't go north, you will fall of the " + print("Oh dear Basdet! You can't go south, you will fall of the " "cliff!\n") return False elif direction == "n": -- cgit v1.3 From 0245ad8d8937bf17d22db6197a8fa904a52fd831 Mon Sep 17 00:00:00 2001 From: Kleopatra Angelidi Date: Mon, 20 May 2013 14:43:46 +0300 Subject: changed challenge description about cat (n1w4) --- weatbag/tiles/n1w4.py | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'weatbag/tiles/n1w4.py') diff --git a/weatbag/tiles/n1w4.py b/weatbag/tiles/n1w4.py index d9e9b74..dde04fc 100644 --- a/weatbag/tiles/n1w4.py +++ b/weatbag/tiles/n1w4.py @@ -8,12 +8,13 @@ class Tile: def describe(self): if not self.challenge_completed: - print("The rocks led you to a path uphill.\n*Poof* A purrr-sian " - "cat appears in front of you!\n") + print("*Poof* A purrr-sian cat appears in front of you!\n") self.challenge() else: - print("The rocks led you to a path uphill.\nIt's a little bit " - "windy and a flock of seagulls is flying above you.") + print("Some pawprints on the ground probably from the persian cat " + "you encountered earlier.\n" + "It's a little bit windy and a flock of seagulls is flying " + "above you.\n") def challenge(self): print("Meow good traveler! I have a question for you.\n" @@ -41,7 +42,9 @@ class Tile: print("You are a clever human, aren't you?!\n\n" "Here is my offering. I give you this maneki-neko.\n" "If you ever come across a wall of kittens and you want " - "them to let you pass you will use this lucky charm!") + "them to let you pass you will use this lucky charm!\n\n" + "And as the cat says these words, " + "*poof* she disappears!\n") #https://en.wikipedia.org/wiki/Maneki-neko self.contents['neko'] -= 1 player.give('neko') -- cgit v1.3 From b64c888f6e7874ecf22023474bb0bf987ca39b4c Mon Sep 17 00:00:00 2001 From: Kleopatra Angelidi Date: Mon, 20 May 2013 14:52:00 +0300 Subject: leave description for E (n1w4) --- weatbag/tiles/n1w4.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'weatbag/tiles/n1w4.py') diff --git a/weatbag/tiles/n1w4.py b/weatbag/tiles/n1w4.py index dde04fc..22e2fb0 100644 --- a/weatbag/tiles/n1w4.py +++ b/weatbag/tiles/n1w4.py @@ -64,5 +64,8 @@ class Tile: "Since you don't walk though walls (yet) " "you can't go there.\n") return False + elif direction == "e": + print("You follow the path downhill.") + return True else: return True -- cgit v1.3 From 370d19e493d9cd74fa15cd1580b7b7a5246a602f Mon Sep 17 00:00:00 2001 From: Kleopatra Angelidi Date: Mon, 20 May 2013 15:52:33 +0300 Subject: added map_world --- weatbag/tiles/n1w2.py | 3 ++- weatbag/tiles/n1w3.py | 3 ++- weatbag/tiles/n1w4.py | 2 ++ weatbag/tiles/n1w5.py | 2 ++ weatbag/tiles/n1w6.py | 2 ++ weatbag/tiles/n2w6.py | 1 + weatbag/tiles/n3w5.py | 2 ++ weatbag/tiles/n3w6.py | 1 + weatbag/tiles/n4w5.py | 2 ++ weatbag/tiles/n4w6.py | 2 ++ weatbag/tiles/n4w7.py | 2 ++ weatbag/tiles/n5w5.py | 4 +++- weatbag/tiles/n5w6.py | 2 ++ weatbag/tiles/n5w7.py | 2 ++ 14 files changed, 27 insertions(+), 3 deletions(-) (limited to 'weatbag/tiles/n1w4.py') diff --git a/weatbag/tiles/n1w2.py b/weatbag/tiles/n1w2.py index 63fec34..db976fe 100644 --- a/weatbag/tiles/n1w2.py +++ b/weatbag/tiles/n1w2.py @@ -1,5 +1,6 @@ class Tile: - + map_word = "Island beach" + def describe(self): print("The beach is really quiet and you can hear and see the seagulls " "on the sea.") diff --git a/weatbag/tiles/n1w3.py b/weatbag/tiles/n1w3.py index 3c8905c..52d1cb9 100644 --- a/weatbag/tiles/n1w3.py +++ b/weatbag/tiles/n1w3.py @@ -1,5 +1,6 @@ class Tile: - + map_word = "Beach rocks" + def describe(self): print("Woooah! Those rocks are full of lichens!\n") diff --git a/weatbag/tiles/n1w4.py b/weatbag/tiles/n1w4.py index 22e2fb0..c427e9f 100644 --- a/weatbag/tiles/n1w4.py +++ b/weatbag/tiles/n1w4.py @@ -1,6 +1,8 @@ from weatbag.utils import transfer class Tile: + map_word = "Persian cat" + def __init__(self): self.contents = {'neko': 1} self.challenge_completed = False diff --git a/weatbag/tiles/n1w5.py b/weatbag/tiles/n1w5.py index 2f308cb..a6738b9 100644 --- a/weatbag/tiles/n1w5.py +++ b/weatbag/tiles/n1w5.py @@ -2,6 +2,8 @@ from weatbag import words from weatbag.utils import transfer class Tile: + map_word = "Mouse traps" + def __init__(self): self.contents = {'mice': 2} diff --git a/weatbag/tiles/n1w6.py b/weatbag/tiles/n1w6.py index 7c8438f..67f2d47 100644 --- a/weatbag/tiles/n1w6.py +++ b/weatbag/tiles/n1w6.py @@ -1,4 +1,6 @@ class Tile: + map_word = "Top cliff" + def describe(self): print("You have reached the top of the cliff! You feel the fresh " "breeze in your face and you smell the salty sea! The view and " diff --git a/weatbag/tiles/n2w6.py b/weatbag/tiles/n2w6.py index 15e1610..2ce54a6 100644 --- a/weatbag/tiles/n2w6.py +++ b/weatbag/tiles/n2w6.py @@ -1,4 +1,5 @@ class Tile: + map_word = "Cliff" def describe(self): print("Big rocks around the place, and the sound of small waves at the " diff --git a/weatbag/tiles/n3w5.py b/weatbag/tiles/n3w5.py index 8fa9be3..e1587bb 100644 --- a/weatbag/tiles/n3w5.py +++ b/weatbag/tiles/n3w5.py @@ -2,6 +2,8 @@ from weatbag import words from weatbag.utils import transfer class Tile: + map_word = "Box riddle" + def __init__(self): self.contents = {'knife': 1} self.challenge_completed = False diff --git a/weatbag/tiles/n3w6.py b/weatbag/tiles/n3w6.py index c4c5b6c..c5a03be 100644 --- a/weatbag/tiles/n3w6.py +++ b/weatbag/tiles/n3w6.py @@ -1,4 +1,5 @@ class Tile: + map_word = "Beach rocks" def describe(self): print("Rocks. Big rocks. Slippery rocks all over!\n") diff --git a/weatbag/tiles/n4w5.py b/weatbag/tiles/n4w5.py index 0344000..95971e3 100644 --- a/weatbag/tiles/n4w5.py +++ b/weatbag/tiles/n4w5.py @@ -1,4 +1,6 @@ class Tile: + map_word = "Pine forest" + def describe(self): print("There are not so many trees around but the ground is full of " "pine needles and pine cones.\n") diff --git a/weatbag/tiles/n4w6.py b/weatbag/tiles/n4w6.py index c0f5129..755a78a 100644 --- a/weatbag/tiles/n4w6.py +++ b/weatbag/tiles/n4w6.py @@ -1,4 +1,6 @@ class Tile: + map_word = "Beach curve" + def describe(self): print("The beach makes a nice little curve on that spot. There are " "some pine trees around too. A really quiet sceenery!\n") diff --git a/weatbag/tiles/n4w7.py b/weatbag/tiles/n4w7.py index f1e40e9..6850196 100644 --- a/weatbag/tiles/n4w7.py +++ b/weatbag/tiles/n4w7.py @@ -2,6 +2,8 @@ from weatbag import words from weatbag.utils import transfer class Tile: + map_word = "Kitties" + def __init__(self): self.challenge_completed = False diff --git a/weatbag/tiles/n5w5.py b/weatbag/tiles/n5w5.py index eed7c1c..c5e214b 100644 --- a/weatbag/tiles/n5w5.py +++ b/weatbag/tiles/n5w5.py @@ -2,13 +2,15 @@ from weatbag import words from weatbag.utils import transfer class Tile: + map_word = "Kiosk" + def __init__(self): self.contents = {"cream": 1} self.challenge_completed = False def describe(self): print("You are on the beach. You see a small kiosk selling " - "ice creams!\n") + "ice cream!\n") if not self.challenge_completed: self.challenge() diff --git a/weatbag/tiles/n5w6.py b/weatbag/tiles/n5w6.py index f1121d6..b739479 100644 --- a/weatbag/tiles/n5w6.py +++ b/weatbag/tiles/n5w6.py @@ -1,4 +1,6 @@ class Tile: + map_word = "Beach" + def describe(self): print("You walk in the beach. There is a light house on the west.\n") diff --git a/weatbag/tiles/n5w7.py b/weatbag/tiles/n5w7.py index ca39186..f38501c 100644 --- a/weatbag/tiles/n5w7.py +++ b/weatbag/tiles/n5w7.py @@ -1,6 +1,8 @@ from weatbag import words class Tile: + map_word = "Lighthouse" + def __init__(self): self.trapped = True -- cgit v1.3 From 635e161a3bf7866105cb78c9ada29d4d4ddb6aa6 Mon Sep 17 00:00:00 2001 From: Kleopatra Angelidi Date: Thu, 23 May 2013 15:36:40 +0300 Subject: removed last /n from action and leave functions --- weatbag/tiles/n1w1.py | 2 +- weatbag/tiles/n1w2.py | 4 ++-- weatbag/tiles/n1w3.py | 4 ++-- weatbag/tiles/n1w4.py | 6 +++--- weatbag/tiles/n1w5.py | 6 +++--- weatbag/tiles/n1w6.py | 4 ++-- weatbag/tiles/n2w1.py | 10 +++++----- weatbag/tiles/n2w2.py | 2 +- weatbag/tiles/n2w3.py | 2 +- weatbag/tiles/n2w4.py | 6 +++--- weatbag/tiles/n2w5.py | 4 ++-- weatbag/tiles/n2w6.py | 6 +++--- weatbag/tiles/n3w1.py | 4 ++-- weatbag/tiles/n3w2.py | 6 +++--- weatbag/tiles/n3w3.py | 4 ++-- weatbag/tiles/n3w4.py | 4 ++-- weatbag/tiles/n3w5.py | 4 ++-- weatbag/tiles/n3w6.py | 4 ++-- weatbag/tiles/n4w5.py | 2 +- weatbag/tiles/n4w6.py | 6 +++--- weatbag/tiles/n4w7.py | 2 +- weatbag/tiles/n5w5.py | 4 ++-- weatbag/tiles/n5w6.py | 2 +- weatbag/tiles/n5w7.py | 6 +++--- 24 files changed, 52 insertions(+), 52 deletions(-) (limited to 'weatbag/tiles/n1w4.py') diff --git a/weatbag/tiles/n1w1.py b/weatbag/tiles/n1w1.py index f809dc4..b4f1252 100644 --- a/weatbag/tiles/n1w1.py +++ b/weatbag/tiles/n1w1.py @@ -12,7 +12,7 @@ class Tile: def leave(self, player, direction): if direction == "w": print ("You can't go there by swimming, that part is full of " - "electric eels.\n") + "electric eels.") return False else: return True diff --git a/weatbag/tiles/n1w2.py b/weatbag/tiles/n1w2.py index db976fe..e517ca3 100644 --- a/weatbag/tiles/n1w2.py +++ b/weatbag/tiles/n1w2.py @@ -3,7 +3,7 @@ class Tile: def describe(self): print("The beach is really quiet and you can hear and see the seagulls " - "on the sea.") + "on the sea.\n") def action(self, player, do): print("What is this gibberish?") @@ -14,7 +14,7 @@ class Tile: "electric eels.\n") return False elif direction == "s": - print("I'm afraid I can't let you go there Dave.\n") + print("I'm afraid I can't let you go there Dave.") return False elif direction == "w": print("The sandy beach is transforming into big rocks but it looks " diff --git a/weatbag/tiles/n1w3.py b/weatbag/tiles/n1w3.py index 52d1cb9..5d63235 100644 --- a/weatbag/tiles/n1w3.py +++ b/weatbag/tiles/n1w3.py @@ -5,12 +5,12 @@ class Tile: print("Woooah! Those rocks are full of lichens!\n") def action(self, player, do): - print("Sorry, I don't speak gibberish.\n") + print("Sorry, I don't speak gibberish.") def leave(self, player, direction): if direction == "s": print("Are you planing to throw your self to the rocks? You can't " - "go there!\n") + "go there!") return False elif direction == "n": print("The rocks are way to high for you. " diff --git a/weatbag/tiles/n1w4.py b/weatbag/tiles/n1w4.py index c427e9f..6dfdde7 100644 --- a/weatbag/tiles/n1w4.py +++ b/weatbag/tiles/n1w4.py @@ -46,7 +46,7 @@ class Tile: "If you ever come across a wall of kittens and you want " "them to let you pass you will use this lucky charm!\n\n" "And as the cat says these words, " - "*poof* she disappears!\n") + "*poof* she disappears!") #https://en.wikipedia.org/wiki/Maneki-neko self.contents['neko'] -= 1 player.give('neko') @@ -59,12 +59,12 @@ class Tile: def leave(self, player, direction): if direction == "s": print("Oh dear Basdet! You can't go south, you will fall of the " - "cliff!\n") + "cliff!") return False elif direction == "n": print("It looks like the side of a wooden hut.\n" "Since you don't walk though walls (yet) " - "you can't go there.\n") + "you can't go there.") return False elif direction == "e": print("You follow the path downhill.") diff --git a/weatbag/tiles/n1w5.py b/weatbag/tiles/n1w5.py index a6738b9..4b2c1d4 100644 --- a/weatbag/tiles/n1w5.py +++ b/weatbag/tiles/n1w5.py @@ -22,7 +22,7 @@ class Tile: if (do[0] in words.take) and ('mice' in do): self.take_mice(player) else: - print("Sorry, I don't understand.\n") + print("Sorry, I don't understand.") def take_mice(self, player): if transfer('mice', self.contents, player.inventory, n=2): @@ -34,12 +34,12 @@ class Tile: def leave(self, player, direction): if direction == "s": print("My dear traveler, you can't go south, you will fall off the " - "cliff!\n") + "cliff!") return False elif direction == "n": print("It looks like the side of a wooden hut.\n" "Since you don't walk though walls (yet) " - "you can't go there.\n") + "you can't go there.") return False elif direction == "e": print("You follow the path downhill.") diff --git a/weatbag/tiles/n1w6.py b/weatbag/tiles/n1w6.py index 67f2d47..78528ff 100644 --- a/weatbag/tiles/n1w6.py +++ b/weatbag/tiles/n1w6.py @@ -9,12 +9,12 @@ class Tile: "So which way?\n") def action(self, player, do): - print("Sorry, I don't understand.\n") + print("Sorry, I don't understand.") def leave(self, player, direction): if direction in ('s', 'w'): print("My dear traveler, you can't go there, you will fall of the " - "cliff!\n") + "cliff!") return False elif direction in('e', 'n'): print("You follow the path downhill.") diff --git a/weatbag/tiles/n2w1.py b/weatbag/tiles/n2w1.py index 00198a8..9be8cdc 100644 --- a/weatbag/tiles/n2w1.py +++ b/weatbag/tiles/n2w1.py @@ -36,11 +36,11 @@ class Tile: print("Your answer has pleased me and my sister! " "\nLet's go!") print("The brother and sister will take you to the " - "island.\n") + "island.") self.challenge_completed = True else: print("We're afraid this is not the correct answer. " - "Try another one.\n") + "Try another one.") elif (do[0] in words.take) and (do[1] == "sister" or do[1] == "girl"): print("You bastard! Let my sister down!\n" @@ -48,14 +48,14 @@ class Tile: "Taking advantage of little children?\n" "We will transport you for free.\n") print("The brother and sister will take you " - "to the island!\n") + "to the island!") self.challenge_completed = True elif (do[0] in words.take) and (do[1] == "brother" or do[1] == "boy"): print("You bastard, put me down!\n" "We will trasnport you for free!\n") print("The brother and sister will take you " - "to the island!\n") + "to the island!") self.challenge_completed = True elif (do[0] in words.take) and not self.challenge_completed: print("I told you we won't give you our raft, " @@ -68,7 +68,7 @@ class Tile: def leave(self, player, direction): if direction == "w" and not self.challenge_completed: print ("You can't go there by swimming, that part is full of " - "electric eels.\n") + "electric eels.") return False else: return True diff --git a/weatbag/tiles/n2w2.py b/weatbag/tiles/n2w2.py index 390ef19..35897c3 100644 --- a/weatbag/tiles/n2w2.py +++ b/weatbag/tiles/n2w2.py @@ -26,7 +26,7 @@ class Tile: def leave(self, player, direction): if direction == "e": print("You can't go back by swimming, that part is full of " - "electric eels.\n") + "electric eels.") return False else: return True diff --git a/weatbag/tiles/n2w3.py b/weatbag/tiles/n2w3.py index eba9089..4e6707b 100644 --- a/weatbag/tiles/n2w3.py +++ b/weatbag/tiles/n2w3.py @@ -21,7 +21,7 @@ class Tile: def leave(self, player, direction): if direction == "s": print("Careful now! Nasty rocks all over to the south.\n" - "(Meaning you just can't go to that direction. Sorry!)\n") + "(Meaning you just can't go to that direction. Sorry!)") return False else: return True diff --git a/weatbag/tiles/n2w4.py b/weatbag/tiles/n2w4.py index 59904c2..c14bffb 100644 --- a/weatbag/tiles/n2w4.py +++ b/weatbag/tiles/n2w4.py @@ -28,15 +28,15 @@ class Tile: print("You'll need a doorknob to open the door.\n") self.opendoor = False else: - print("Sorry, I don't understand.\n") + print("Sorry, I don't understand.") def leave(self, player, direction): if direction == 'w' and not self.opendoor: - print("First you need to enter the hut.\n") + print("First you need to enter the hut.") return False elif direction == 's': print("Meeeeh, nothing of importance is going on there, try " - "another direction.\n") + "another direction.") return False else: return True diff --git a/weatbag/tiles/n2w5.py b/weatbag/tiles/n2w5.py index 1c2d707..d6d3efa 100644 --- a/weatbag/tiles/n2w5.py +++ b/weatbag/tiles/n2w5.py @@ -17,7 +17,7 @@ class Tile: if (do[0] in words.take) and ('catfood' in do): self.take_catfood(player) else: - print("Sorry, I don't understand.\n") + print("Sorry, I don't understand.") def take_catfood(self, player): if transfer('catfood', self.contents, player.inventory, n=2): @@ -27,7 +27,7 @@ class Tile: def leave(self, player, direction): if direction == 'w'or direction == 's' or direction == 'n': - print("I don't think you can pass through walls.\n") + print("I don't think you can pass through walls.") return False else: return True diff --git a/weatbag/tiles/n2w6.py b/weatbag/tiles/n2w6.py index 2ce54a6..15a3cf6 100644 --- a/weatbag/tiles/n2w6.py +++ b/weatbag/tiles/n2w6.py @@ -6,17 +6,17 @@ class Tile: "western sea makes you calm! \n") def action(self, player, do): - print("Sorry, I don't understand.\n") + print("Sorry, I don't understand.") def leave(self, player, direction): if direction == "w": print("My dear traveler, you can't fall off the cliff! " - "I won't let you do it.\n") + "I won't let you do it.") return False elif direction == "e": print("It looks like the back of a wooden hut.\n" "Since you don't walk through walls (yet) " - "you can't go there.\n") + "you can't go there.") return False elif direction == "s": print("You follow the path uphill.") diff --git a/weatbag/tiles/n3w1.py b/weatbag/tiles/n3w1.py index 98877eb..922ec4a 100644 --- a/weatbag/tiles/n3w1.py +++ b/weatbag/tiles/n3w1.py @@ -8,7 +8,7 @@ class Tile: def leave(self, player, direction): if direction == 'w': print("I'm afraid you can't go west.\nThe sea on that part is " - "full of electric eels and you don't have a transport.\n") + "full of electric eels and you don't have a transport.") return False elif direction == 'e': print("There's a steep mountainside here which you can't climb.") @@ -36,6 +36,6 @@ class Tile: " '-...-' '-...-' \n") print("A wall of kitties doesn't allow you to go North.\n" "But that doesn't make you mad... " - "You can't be mad at kitties, rite?!\n") + "You can't be mad at kitties, rite?!") return False return True diff --git a/weatbag/tiles/n3w2.py b/weatbag/tiles/n3w2.py index 9ff35a5..d4300b5 100644 --- a/weatbag/tiles/n3w2.py +++ b/weatbag/tiles/n3w2.py @@ -35,16 +35,16 @@ class Tile: elif len(do) > 1: print("I have no use for that.\n") else: - print("Sorry, I don't understand.\n") + print("Sorry, I don't understand.") def leave(self, player, direction): if direction == 'e'and not self.give_catfood: print("You can't swim, remember the electric eels? You need a " - "transport to go across.\n") + "transport to go across.") return False if direction == 'n': - print("Nothing to do there.\n") + print("Nothing to do there.") return False else: return True diff --git a/weatbag/tiles/n3w3.py b/weatbag/tiles/n3w3.py index d2977c4..f0bcce5 100644 --- a/weatbag/tiles/n3w3.py +++ b/weatbag/tiles/n3w3.py @@ -18,7 +18,7 @@ class Tile: self.take_doorknob(player) else: - print("Sorry, I don't understand.\n") + print("Sorry, I don't understand.") def take_doorknob(self, player): if transfer('doorknob', self.contents, player.inventory): @@ -28,7 +28,7 @@ class Tile: def leave(self, player, direction): if direction == "n": - print("Oops! You can't go there. There is a rocky wall.\n") + print("Oops! You can't go there. There is a rocky wall.") return False else: return True diff --git a/weatbag/tiles/n3w4.py b/weatbag/tiles/n3w4.py index c643ac7..cc286bd 100644 --- a/weatbag/tiles/n3w4.py +++ b/weatbag/tiles/n3w4.py @@ -7,11 +7,11 @@ class Tile: "I totaly get you, it's a nice path to have a walk!\n") def action(self, player, do): - print("Sorry, I don't understand.\n") + print("Sorry, I don't understand.") def leave(self, player, direction): if direction == "n": - print("No trespasing. Violators will vanish without a trace.\n") + print("No trespasing. Violators will vanish without a trace.") return False else: return True diff --git a/weatbag/tiles/n3w5.py b/weatbag/tiles/n3w5.py index e1587bb..b7dd456 100644 --- a/weatbag/tiles/n3w5.py +++ b/weatbag/tiles/n3w5.py @@ -37,7 +37,7 @@ class Tile: self.take_knife(player, do) self.challenge_completed = True else: - print("Sorry, I don't understand.\n") + print("Sorry, I don't understand.") def take_knife(self, player, do): if transfer('knife', self.contents, player.inventory): @@ -48,7 +48,7 @@ class Tile: def leave(self, player, direction): if direction == "s": print("You can't go there, it's a wall. It looks like the side of " - "a wooden hut.\n") + "a wooden hut.") return False else: return True diff --git a/weatbag/tiles/n3w6.py b/weatbag/tiles/n3w6.py index c5a03be..7877139 100644 --- a/weatbag/tiles/n3w6.py +++ b/weatbag/tiles/n3w6.py @@ -5,11 +5,11 @@ class Tile: print("Rocks. Big rocks. Slippery rocks all over!\n") def action(self, player, do): - print("Sorry, I don't understand.\n") + print("Sorry, I don't understand.") def leave(self, player, direction): if direction == "w": - print("No-no! You'll break your head on the rocks down there!\n") + print("No-no! You'll break your head on the rocks down there!") return False elif direction == "s": print("You follow the path uphill. Just be careful of the slippery " diff --git a/weatbag/tiles/n4w5.py b/weatbag/tiles/n4w5.py index 95971e3..8308503 100644 --- a/weatbag/tiles/n4w5.py +++ b/weatbag/tiles/n4w5.py @@ -14,7 +14,7 @@ class Tile: return False elif direction == "n": print("There is an opening that leads you to the beach on the " - "northen side of the island.\n") + "northen side of the island.") return True else: return True diff --git a/weatbag/tiles/n4w6.py b/weatbag/tiles/n4w6.py index 755a78a..0f2c508 100644 --- a/weatbag/tiles/n4w6.py +++ b/weatbag/tiles/n4w6.py @@ -6,15 +6,15 @@ class Tile: "some pine trees around too. A really quiet sceenery!\n") def action(self, player, do): - print("Sorry, I don't understand.\n") + print("Sorry, I don't understand.") def leave(self, player, direction): if direction == "s": print("You follow the path uphill. There are some rocks. Just be " - "careful, they all have this gooey green stuff on them!\n") + "careful, they all have this gooey green stuff on them!") return True elif direction == "e": - print("You are going through the pine trees.\n") + print("You are going through the pine trees.") return True else: return True diff --git a/weatbag/tiles/n4w7.py b/weatbag/tiles/n4w7.py index 6850196..bc582bb 100644 --- a/weatbag/tiles/n4w7.py +++ b/weatbag/tiles/n4w7.py @@ -43,7 +43,7 @@ class Tile: def leave(self, player, direction): if direction in ("s", "w"): print("It's the open sea. You can't go anywhere near by " - "swimming.\n") + "swimming.") return False elif direction == "n": print("You are heading to the lighthouse.") diff --git a/weatbag/tiles/n5w5.py b/weatbag/tiles/n5w5.py index c5e214b..75aff81 100644 --- a/weatbag/tiles/n5w5.py +++ b/weatbag/tiles/n5w5.py @@ -38,12 +38,12 @@ class Tile: print("Don't be greedy, you have all the cream you're gonna " "need.\n") else: - print("I don't understand.\n") + print("I don't understand.") def leave(self, player, direction): if direction in ("n", "e"): print("It's the open sea. You can't go anywhere near by " - "swimming.\n") + "swimming.") return False elif direction == "s": print("A bunch of pine trees...") diff --git a/weatbag/tiles/n5w6.py b/weatbag/tiles/n5w6.py index b739479..81438fe 100644 --- a/weatbag/tiles/n5w6.py +++ b/weatbag/tiles/n5w6.py @@ -10,7 +10,7 @@ class Tile: def leave(self, player, direction): if direction == "n": print("It's the open sea. You can't go anywhere near by " - "swimming.\n") + "swimming.") return False else: return True diff --git a/weatbag/tiles/n5w7.py b/weatbag/tiles/n5w7.py index face836..1986782 100644 --- a/weatbag/tiles/n5w7.py +++ b/weatbag/tiles/n5w7.py @@ -69,15 +69,15 @@ class Tile: if self.trapped and direction in ("w", "n"): print("You are my prisoner, I won't let you leave. But even if you " "could leave these are the inner walls of the lighthouse you " - "idiot! And then the sea.\n") + "idiot! And then the sea.") return False elif self.trapped and direction in ("e", "s"): print("What do you think you are doing? I won't let you leave. " - "You are my prisoner!\n") + "You are my prisoner!") return False elif direction in ("w", "n"): print("It's the lighthouse walls. What are you gonna do? " - "Hit your head on them?\n") + "Hit your head on them?") return False else: print("Finally you are out!") -- cgit v1.3