summaryrefslogtreecommitdiffstats
path: root/weatbag/tiles/w1.py
blob: e68fc73ef665db613e028423760f3d4b7457aed6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
class Tile:
    
    def describe(self):
        print("The trees open out onto a beautiful beach. "
            "Small waves lap at the sand. Ahead of you, "
            "the ocean stretches as far as you can see.")
    
    def action(self, player, do):
        # Nothing to do here yet.
        print("Sorry, I don't understand")
    
    def leave(self, player, direction):
        if direction=='w':
            print("You've forgotten how to swim.")
            return False
        return True