From 9bb21fa1b39ba5a1c5817e7f01797d80356e9192 Mon Sep 17 00:00:00 2001 From: Constantin Berhard Date: Thu, 31 Jul 2014 23:29:48 +0200 Subject: [PATCH] stupid bug --- labyrinth.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/labyrinth.py b/labyrinth.py index c15531c..e190da2 100644 --- a/labyrinth.py +++ b/labyrinth.py @@ -85,7 +85,7 @@ class Labyrinth: return reduce(lambda x,y:x+y, self.tiles) def getFreeTiles (self): - return filter(lambda f: f.groundtype == Labyrinth.GroundType.FLOOR and len(f.things == 0) ,self.getTiles) + return list(filter(lambda f: f.groundtype == Labyrinth.GroundType.FLOOR and len(f.things) == 0 ,self.getTiles())) def getDescription (self, field): descr = "" -- GitLab