summaryrefslogtreecommitdiffstats
path: root/weatbag/tiles/n2w6.py
blob: 15a3cf63712fd7749c2050e67e5d12b659fe43ae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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