diff options
| author | Thomas Kluyver <takowl@gmail.com> | 2013-05-26 14:43:55 -0700 |
|---|---|---|
| committer | Thomas Kluyver <takowl@gmail.com> | 2013-05-26 14:43:55 -0700 |
| commit | 0f8ea0492007d5a330558665e00012b0b7b92fef (patch) | |
| tree | 7845c107d6bfe9def38fbbc4af13fa36d68d1c74 /weatbag/tiles/n2w6.py | |
| parent | 8cdd5546c6993898e6d319853ab6c7e639ab7bf0 (diff) | |
| parent | 74288b83d9e99f790ef4a96fe7bfc96814bcb3d6 (diff) | |
Merge pull request #24 from ratmonkey/kittens
Kittens
Diffstat (limited to 'weatbag/tiles/n2w6.py')
| -rw-r--r-- | weatbag/tiles/n2w6.py | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/weatbag/tiles/n2w6.py b/weatbag/tiles/n2w6.py new file mode 100644 index 0000000..15a3cf6 --- /dev/null +++ b/weatbag/tiles/n2w6.py @@ -0,0 +1,25 @@ +class Tile: + map_word = "Cliff" + + def describe(self): + print("Big rocks around the place, and the sound of small waves at the " + "western sea makes you calm! \n") + + def action(self, player, do): + 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.") + 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.") + return False + elif direction == "s": + print("You follow the path uphill.") + return True + else: + return True |
