summaryrefslogtreecommitdiffstats
path: root/weatbag/tiles/n1w4.py
blob: 5504a57bef1c68d3d46c52451006fd90e74f267d (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
26
27
28
29
30
31
32
33
34
class Tile:
    def __init__(self):
        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")
        if not self.challenge_completed:
            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.")

    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
        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