From: Neil Date: Tue, 16 Apr 2013 14:50:40 +0000 (+0200) Subject: Add helper method X-Git-Url: https://git.ctpug.org.za/?a=commitdiff_plain;h=bbbabb3f3e92e6862140ab0ab6417bcd65707134;p=erdslangetjie.git Add helper method --- diff --git a/erdslangetjie/level.py b/erdslangetjie/level.py index 283588c..450ce8c 100644 --- a/erdslangetjie/level.py +++ b/erdslangetjie/level.py @@ -42,6 +42,9 @@ class Level(object): def get_tiles(self): return self.tiles + def get_size(self): + return len(self.tiles[0]), len(self.tiles) + def at_exit(self, pos): return pos in self.exit_pos