From bbbabb3f3e92e6862140ab0ab6417bcd65707134 Mon Sep 17 00:00:00 2001 From: Neil Date: Tue, 16 Apr 2013 16:50:40 +0200 Subject: [PATCH] Add helper method --- erdslangetjie/level.py | 3 +++ 1 file changed, 3 insertions(+) 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 -- 2.34.1