summaryrefslogtreecommitdiffstats
path: root/weatbag/tiles/n1w4.py
blob: 13b288e4d15bcd04134f0be05543419a909527c3 (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
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